- Home /
How do you add something to your pass?
I'm trying to disable Culling, so that a level's mesh is completely visible. And, I found a post someone made saying that you could do so by adding. "Cull Off" to your pass. How do I do that?
Answer by Berenger · Jun 25, 2012 at 08:08 PM
In the shader, under 'SubShader' and 'Tags', add Cull Off. Usually, there is 'LOD 100' too.
Thanks! I added a shader, and added "Cull Off" here:
Shader "Custom/Shader" { Properties { _$$anonymous$$ainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } LOD 200
Pass { Cull Off
Name "FORWARD"
Tags { "Light$$anonymous$$ode" = "ForwardBase" }</pre>
Will that work? And does the shader work by it's self, or do I have to do something to implement it?
I would have put it just under LOD 200, but give it a shot. $$anonymous$$aybe that way it's specific to a pass and not the entire shader.