Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity shader show object behind object

...
SubShader
{
	Tags{...}
    ZTest Greater //<<This is all you need for common cases.
    //Transparent objects and self-overlap can give you a hard time though
...
}
 
PREVIOUS NEXT
Tagged: #unity #shader #show #object #object
ADD COMMENT
Topic
Name
8+1 =