$halflambert

From Valve Developer Community
Jump to: navigation, search
English (en)
Edit
Lambertian (left) and Half Lambertian (right)

$halflambert is a material shader parameter available in all Source Source games for VertexLitGeneric, Teeth, EyeRefract, VortWarp, Infected (shader). It is a boolean parameter that enables half-lambertian lighting, which wraps lighting further around a model to prevent it from losing definition. It only works on models.

Note.pngNote:Since Source 2007 Source 2007, half-lambertian lighting is forcibly enabled on VertexLitGeneric regardless of $halflambert setting when $phong is enabled, unless $phongdisablehalflambert(in all games since Alien Swarm) is enabled.
Note.pngNote:This parameter is disabled since Counter-Strike: Global Offensive due to conflicts with cascade shadow mapping.
Icon-Important.pngImportant:Does not work on static props which have lighting baked per-vertex or into lightmaps in stock VRAD; this could be achieved with a custom VRAD.

Syntax

$halflambert 1