$halflambert/en
Language subpage
This subpage is used on the $halflambert page to display content in English.
If you have edited the language subpage, do not forget to purge the cache of the base page by clicking on the button on the right. Otherwise, its contents will not be updated.
$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:Since Source 2007, half-lambertian lighting is forcibly enabled on
VertexLitGeneric
regardless of $halflambert
setting when $phong
is enabled, unless $phongdisablehalflambert
(in all games since ) is enabled.Important: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