public void EnsureInit() { if (m_InstanceSegmentationCrossPipelinePass == null) { m_InstanceSegmentationCrossPipelinePass = new InstanceSegmentationCrossPipelinePass(targetCamera); m_InstanceSegmentationCrossPipelinePass.Setup(); } }
public InstanceSegmentationUrpPass(Camera camera, RenderTexture targetTexture) { m_InstanceSegmentationPass = new InstanceSegmentationCrossPipelinePass(camera); ConfigureTarget(targetTexture, targetTexture.depthBuffer); m_InstanceSegmentationPass.Setup(); }