$halflambert

From Valve Developer Community
Revision as of 22:43, 28 July 2019 by Deprecated (talk | contribs) (Added shaders this works on, further information on note)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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