Hi
Have tried for a week now to get a Stencil shader to work with a video material (using a render texture)
In my shader have made 2 changes to make it ‘stencil enabled’
In my Properties have added
[Enum(Equal, 3, NotEqual, 6)] stest("Stencil Test", int) = 3
And in the SubShader have added
Stencil {
Ref 1
comp[stest]
}
This works for any other material but not for video playback with a Rendertexture.
I’m using the LWRP but I don’t think the render pipeline should make any difference.
The frustrating part is that when I playback in the editor, the Stencil video works. Its only after I deploy (iOS) that I see it not working.