- Home /
Always Render/Draw FPS Weapon
I am trying to make it always draw/render the weapon even when its "poking threw objects". How would I achieve this using only one camera?
Answer by Borgo · Jan 10, 2011 at 02:03 PM
Take a look on this shader shader, maybe, it can help you:
http://www.unifycommunity.com/wiki/index.php?title=DepthMask
in the documentation says that you need to add a line in all your shaders:
Tags {"Queue" = "Geometry+20" }
And apply the DethMask shader to your weapon.
I know how to switch the shader but how do I add on a new one. Depth shader doesnt show up in the dropdown but its in my inspector.
I fixed it, but it seems as if it wont work, not even the example project works.
I think its to version 2.x I will try to convert the shader to 3.x and post here.
Your answer
Follow this Question
Related Questions
Render group of objects in front? 0 Answers
Unity Free Depth of Field? 1 Answer
Render White Pixels as Transparent 2 Answers
Shuriken won't render off camera bounds 0 Answers
With multiples cameras, How to change what is rendered without using layers? 2 Answers