|
|
|
|
|
|
// [SerializeField]
|
|
|
|
Shader m_ClassLabelingShader; |
|
|
|
Material m_OverrideMaterial; |
|
|
|
LayerMask m_LayerMask; |
|
|
|
public SemanticSegmentationCrossPipelinePass( |
|
|
|
Camera targetCamera, SemanticSegmentationLabelConfig labelConfig) : base(targetCamera) |
|
|
|
public SemanticSegmentationCrossPipelinePass(Camera targetCamera, SemanticSegmentationLabelConfig labelConfig, |
|
|
|
LayerMask layerMask) : base(targetCamera) |
|
|
|
m_LayerMask = layerMask; |
|
|
|
} |
|
|
|
|
|
|
|
public override void Setup() |
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
s_LastFrameExecuted = Time.frameCount; |
|
|
|
var renderList = CreateRendererListDesc(camera, cullingResult, "FirstPass", 0, m_OverrideMaterial, -1); |
|
|
|
var renderList = CreateRendererListDesc(camera, cullingResult, "FirstPass", 0, m_OverrideMaterial, m_LayerMask); |
|
|
|
cmd.ClearRenderTarget(true, true, m_LabelConfig.skyColor); |
|
|
|
DrawRendererList(renderContext, cmd, RendererList.Create(renderList)); |
|
|
|
} |
|
|
|