$writeZ: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
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).
* By default, the modulation shader doesn't set the z value.


[[Category:List of Shader Parameters]]
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.
 
[[Category:Shader parameters|w]]

Latest revision as of 10:08, 15 August 2023

$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.