the stencil buffer is like a data layer. it has 256 values. you can potentially do 256 layers. you just gotta increment or set the correct value and then filter them in the composite and render the different materials.
the stencil buffer is like a data layer. it has 256 values. you can potentially do 256 layers. you just gotta increment or set the correct value and then filter them in the composite and render the different materials.