I am trying to apply a full screen shader to a UI screen. I’ve made a little bit of headway.
When the camera for the UI screen is set to orthographic, the shader seems to just not do anything that I can see. This shader manipulates the base color only, and it seems to work just fine with a projection camera.
If I change my UI sceen camera to projection, the shader effect suddenly appears, however the draw order of my UI components change. Most notably, the TMP get rendered behind a background image. I have to push the image back significantly in the Z axis to get the TMP’s to be visible, however since it’s a projection camera now, the image shrinks as it moves away and no longer takes up the whole screen.
In either the projection of orthographic case, I am using Screen Space - Camera with a Canvas Scaler.
I’m happy working with either projection or orthographic, I just want both the text to be visible and the full screen shader to be applied. I am aware of the sorting order given by the hierarchy, and also the trick of bringing the text slightly forward, but neither seems to work. I have tried moving the components between the layers (e.g. what if the text is UI but the image isn’t, what if the image is UI but the text isn’t, etc) but it doesn’t seem to matter.
Thank you!