Transparency Best Practices for Universal Render Pipeline on Oculus Quest
I'd normally post the link but my account is too new, so you'll need to Google for it. It should be the top result for "down the rabbit hole oculus quest".
How would you go about conditionally rendering fragments with the URP and Shader Graph?
Specifically, the game's design has regions where objects are not rendered.
Imagine you have a plane. That plane can move. All shaders receive that position and only draw whatever is on one of the two sides. This is currently done in an Opaque PBR shader graph with an alpha clip value of 0.5. The shader sets the alpha to 0 or 1 depending on the world position relative to the plane's world position.
Don't worry about the holes that are caused by looking through partially-rendered objects and out the back face. The rendering artifacts actually play into the art style.
- What's the optimal way to design that?
- Is it better to use a transparent material than an opaque material with a clip value?
- What does "in the middle of a fragment shader" mean?
