DepthWrite
Jump to navigation
Jump to search

DepthWrite is a Pixel shader available in all
Source games. The shader used for writting hardware or colored depth for Depth buffer, Cascaded Shadow Maps or Projected texture.
Supported Parameters
Basics
- $color_depth <boolean>
- Write depth as color.
- $vsm <boolean> (only in

)
- Write VSM (Variance Shadow Maps) shadow moments instead of depth.
- $zFill <float> (only in

)
- Use for zfill, not depth texturebuilding (no poly offset, enable culling).
- $zFillPolyOffset <float> (only in

)
- Use for occluder zfill (use poly offset,enable culling).
Transparency
- $basetexture <texture>
- Used for $alphatest, using alpha channel of texture.
- $alphatest <boolean>
- Allow $alphatest support, using $basetexture.
- $alphatestreference <float>
- Alpha reference value.
Adjustment
- $basetexturetransform <matrix> (only in
)
- Transform $basetexture's alignment, scale, rotation and position.
Effect
- $treeSway <boolean> (in all games since
) (also in 


)
- Vertex manipulation to give the effect of trees swaying in the wind.
- $displacementmap <texture> (only in
)
- Displacement map.
- $displacementwrtinkle <boolean> (only in
)
- Displacement map contains wrinkle displacements.