$halflambert

From Valve Developer Community
Revision as of 00:23, 7 May 2019 by Deprecated (talk | contribs) (Rewrite to be more in line with other shader parameters)
Jump to navigation Jump to search
Lambertian (left) and Half Lambertian (right)

$halflambert is a VMT command which enables half-lambertian lighting, which wraps lighting further around a model to prevent it from losing definition. It only works on models.

Note.pngNote:Since Source 2007, this parameter is forced on regardless of $halflambert setting when $phong is enabled, unless $phongDisableHalfLambertTemplate:AS add is enabled.

Syntax

$halflambert 1