|
|
|
|
|
|
class LocalPositionCrossPipelinePass : GroundTruthCrossPipelinePass |
|
|
|
{ |
|
|
|
const string k_ShaderName = "Perception/LocalPosition"; |
|
|
|
static readonly int k_Override = Shader.PropertyToID("_Override"); |
|
|
|
static readonly int k_Center = Shader.PropertyToID("_Center"); |
|
|
|
static readonly int k_Size = Shader.PropertyToID("_Size"); |
|
|
|
|
|
|
|
|
|
|
MaterialPropertyBlock mpb, Renderer renderer, Labeling labeling, uint instanceId) |
|
|
|
{ |
|
|
|
var bounds = renderer.GetComponentInChildren<MeshFilter>().sharedMesh.bounds; |
|
|
|
mpb.SetColor(k_Override, Color.white); |
|
|
|
public override void ClearMaterialProperties(MaterialPropertyBlock mpb, Renderer renderer, Labeling labeling, uint instanceId) |
|
|
|
public override void ClearMaterialProperties( |
|
|
|
MaterialPropertyBlock mpb, Renderer renderer, Labeling labeling, uint instanceId) |
|
|
|
// mpb.SetVector(k_Center, Color.black);
|
|
|
|
mpb.SetColor(k_Override, Color.black); |
|
|
|
} |
|
|
|
} |
|
|
|
} |