- Home /
Question by
syedkamran · Jun 30, 2015 at 06:33 PM ·
shadersdepth
Object Depth Rendering
I'm new to using Shaders in Unity, and I'm currently experiencing a problem where the tree in the image below is rendering below the asphalt. The tree is currently using a legacy diffuse shader which I've modified to include the "RenderType"="Overlay" tag in the sub shader.
screenshot-2015-06-30-14-32-17.jpg
(404.4 kB)
Comment
Answer by karp505 · Jun 30, 2015 at 07:19 PM
Try changing the queue in the subshader tags instead, like so:
SubShader {
Tags { "RenderType"="Opaque" "Queue"="Geometry+1"}
If that doesn't work, try setting queue to Overlay as a sanity check.
Neither the "RenderType"="Opaque" "Queue"="Geometry+1" nor "Queue"="Overlay" worked :(