Read stencil buffer to texture

I’m doing through the shader input, sampler2D this should work.

Hmm, I think you can modify this example for this stencil mask generation.

1 Like