$halflambert
$halflambert
is a material shader parameter available in all 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.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Source 2007](/w/images/thumb/7/78/Src07-16px.png/32px-Src07-16px.png)
VertexLitGeneric
regardless of $halflambert
setting when $phong
is enabled, unless $phongdisablehalflambert
(in all games since ![Alien Swarm](/w/images/thumb/d/d9/As_icon.png/16px-As_icon.png)
![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
Syntax
$halflambert 1