I'm very new to shaders, so I apologize if this is a simple question. I have a shader applied to the floor of my arena, but it's blocking out the player's gun when they look down. I'm guessing I need to adjust the order in which these are rendered, right? This link shows the behavior: 3DTest (1) - FPSword - Windows, Mac, Linux - Unity 2021.3.20f1 Personal <DX11> (gyazo.com) (I'm using URP btw)
There are multiple ways to do this. 1. Overlay camera. Probably the easiest to work with but can be heavier on performance 2. Put render queue on overlay of the material on the gun (might not always work great dependant on your setup, but is fast) 3. Use a custom shader (google 'unity urp render mesh on top of everything shader' and try some. Hard but can perform good) 4. Use a URP render feature (possible, but never tried)
For Render Queue on the material, I'm seeing "From Shader", "Geometry", "AlphaTest", and "Transparent" on the dropdown. Should I be seeing overlay as another option? Also, what exactly do you mean by overlaying the camera?
While I think @DevDunk ’s suggestions are well meaning, and would be correct in one interpretation of the issue you’re having, it’s missing the real problem. The shader you have on the ground isn’t properly setup. Most likely the fix is you should not be using a hand written shader and instead be using one made with Shader Graph.