$writeZ: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 3: Line 3:
* Setting $writeZ to 1 forces the material to set the z value in the depth buffer (so things z-buffer against it).  
* Setting $writeZ to 1 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 the z value.
* By default, the modulation shader doesn't set the z value.
[[Category:List of Shader Parameters]]

Revision as of 20:52, 8 November 2007

"$writeZ" 1
  • Only used by materials using the modulation shader.
  • Setting $writeZ to 1 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 the z value.