$halflambert
Jump to navigation
Jump to search
$halflambert is a material shader parameter for the VertexLitGeneric, Teeth, EyeRefract, VortWarp, and Infected (shader) shader available in all
Source games. 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.
VertexLitGeneric regardless of $halflambert setting when $phong is enabled, unless $phongdisablehalflambert(in all games since - 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.
- Shadows cast by static props will always be full-lambertian. This could potentially be worked around by using an
%alphatexture(only in
) with half opacity.
Syntax
$halflambert 1