Hello,
I am trying to get the basic particles/additive shader to appear over everything else. I have tried changing the render queue in the material and in the code to 4001, and making a clone of the shader and adding ZTest Always and ZWrite Off, however, nothing seems to work. I can’t do the 2nd camera method due to performance issues. How do I get the basic additive shader to show up over objects with the standard shader?
Any help would be appreciated! Thanks.
This should be the answer, along with a high Queue. If it’s not rendering over “everything” I would ask what it’s not rendering over. If you’re expecting it to render on top of image effects or other things that happen after the scene rendering has finished than you’ll have to do something custom using your own image effect at the end of the chain or using command buffers. If you’re talking about other opaque or transparent geometry in the scene I’d say there’s likely a typo someplace in your shader or the queue is being overwritten on the material.
I’m kinda baffled that there seems to be a regular complaint of VR performance issue with multiple cameras. I have never had such issue when developing for mobile. Without any experience with VR, all I know is to enable single-pass stereo rendering.
@bgolus
Yeah that’s what I’m trying to figure out, the stuff it is currently not rendering over are simply objects with the standard shader. I have zero experience with shader editing so what I did was lookup “default particle additive shader” code (since i can’t seem to view the real one) and added the ztest and writes.
@ifurkend
I just tried that, and it seems to work out well, I don’t see a noticeable frame rate drop anymore. Thanks! I guess that solves my problem then, I can just use this method to get the overlay to work.
Downloads (Platform of choice) > Built in Shaders
How are you trying to render this object? Are you rendering something from script (ie: using Graphics.DrawMesh or something similar), or is it a gameobject with a renderer component (mesh, particles, UI)?
The only thing I can think of is this is a stencil issue?