I’m playing around with an Underwater sample, and the shader for submersion draws incorrectly sometimes. When I tell the render path to enable the “Underwater” tag there’s a good chance based on what’s currently being rendered that the shader wont draw properly. If the “Underwater” tag is enabled as soon as possible, then it works 90% of the time. I have no idea what could be going wrong.
Imgur: The magic of the Internet shows the failure (top image) and the success (bottom image). To generate these images, I simply ran the test app (the shader failed), hit print screen, closed the app, ran it again (the shader worked this second time with no changes on my part), hit print screen, and closed the app.
Seems like some kind of initialization problem. I can append the shader code and xml files if it’ll help.