| **DepthTest** |Unity uses DepthTest when rendering an object, to check if it is behind another object. Unity does this by testing the Z-value of a given Objects pixel and comparing against a value stored in the Z-buffer. By default, DepthTest is set to Less Equal, allowing the original object to appear in front of the object it is tested against. Use the drop-down to select the comparison function to use for the depth test. Each comparison function changes how the Shader renders. To expose this option, select **Transparent** from the **Surface Type** drop-down. <br/>• **Disabled:** Do not perform a ZTest. <br/>• **Never:** The ZTest is never passed. <br/>• **Less:** The ZTest passes if the pixels Z-value is less than the stored value. <br/>• **Equal:** The ZTest passes if the pixels Z-value is equal to the stored value. <br/>• **Less Equal:** The ZTest passes if the pixels Z-value is less than or equal than the Z-buffers value. This renders the tested pixel in front of the other. <br/>• **Greater:** The ZTest passes if the pixels Z-value is greater than the stored value. <br/>• **Not Equal:** The ZTest passes if the pixels Z-value is not equal to the stored value. <br/>• **Greater Equal:** The ZTest passes if the pixels Z-value is greater than or equal to the stored value. <br/>• **Always:** The ZTest always passes, there is no comparison to the stored value.|
0 commit comments