Stencil Shader for Video

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.

I have the same problem with my custom shader.
I’m using LWRP on my project and a custom shader using stencil. Everything’s fine when running in the editor but couldn’t get it work on iOS.
NB: same shader runs fine on iOS when using standard pipeline

  • Unity 2019.1.8
  • LWRP 5.6.1
  • iOS 12.2