|
|
|
|
|
|
|
|
|
|
Pass |
|
|
|
{ |
|
|
|
Name "DBuffer" // Name is not used |
|
|
|
Tags { "LightMode" = "DBuffer" } // This will be only for opaque object based on the RenderQueue index |
|
|
|
Name "DBufferProjector" // Name is not used |
|
|
|
Tags { "LightMode" = "DBufferProjector" } // This will be only for opaque object based on the RenderQueue index |
|
|
|
|
|
|
|
// back faces with zfail, for cases when camera is inside the decal volume |
|
|
|
Cull Front |
|
|
|
|
|
|
|
|
|
|
Pass |
|
|
|
{ |
|
|
|
Name "MeshDecals" // Name is not used |
|
|
|
Tags{"LightMode" = "MeshDecals"} // This will be only for opaque object based on the RenderQueue index |
|
|
|
Name "DBufferMesh" // Name is not used |
|
|
|
Tags{"LightMode" = "DBufferMesh"} // This will be only for opaque object based on the RenderQueue index |
|
|
|
|
|
|
|
Cull Back |
|
|
|
ZWrite Off |
|
|
|