$halflambert

From Valve Developer Community
Revision as of 16:12, 6 June 2019 by Deprecated (talk | contribs) (Changed to use Shaderparam template)
Jump to navigation Jump to search
Lambertian (left) and Half Lambertian (right)

Template:Shaderparam It 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, half-lambertian lighting is forced on regardless of $halflambert setting when $phong is enabled, unless $phongDisableHalfLambertTemplate:AS add is enabled.

Syntax

$halflambert 1