Invisible mask object with stencil buffer (ColorMask 0)

Avatar
  • updated
  • Completed

Is it possible to disable rendering of an object that is writing to the stencil buffer for use as a mask?

The tutorials I've found suggest using "ColorMask 0" but this option does not seem to be exposed in Shapes.

Thanks

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Freya Holmér creator

a workaround is to use additive blending and set the color to (0,0,0,1)

Avatar
alex harding

thanks that worked

Avatar
Freya Holmér creator
  • Completed

ColorMask has now been added in 4.2.0