$writeZ: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
  "$writeZ" 1
  $writeZ 1
* Only used by materials using the [[Creating Decals#Using Modulation|modulation]] shader.  
 
* Setting $writeZ to 1 forces the material to set the z value in the depth buffer (so things z-buffer against it).  
Found in the <code>[[DecalModulate]]</code> shader. Forces the material to set the z value in the depth buffer (so things z-buffer against it). By default, the modulation shader doesn't set any value.
* By default, the modulation shader doesn't set the z value.


[[Category:List of Shader Parameters]]
[[Category:List of Shader Parameters]]

Revision as of 10:52, 15 February 2010

$writeZ 1

Found in the DecalModulate shader. Forces the material to set the z value in the depth buffer (so things z-buffer against it). By default, the modulation shader doesn't set any value.