$halflambert

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

$halflambert is a material shader parameter available in all Source games for VertexLitGeneric, Teeth, EyeRefract, VortWarp, Infected. 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:Since Source 2007, half-lambertian lighting is forcibly enabled on VertexLitGeneric regardless of $halflambert setting when $phong is enabled, unless $phongDisableHalfLambert(New with Alien Swarm) is enabled.

Syntax

$halflambert 1