$halflambert

From Valve Developer Community
Revision as of 09:01, 13 September 2022 by Kestrelguy (talk | contribs) (added language bar.)
Jump to navigation Jump to search
English (en)Translate (Translate)
Lambertian (left) and Half Lambertian (right)

Template:Shaderparam 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.pngNote:Since Source 2007 Source 2007, half-lambertian lighting is forcibly enabled on VertexLitGeneric regardless of $halflambert setting when $phong is enabled, unless $phongdisablehalflambertTemplate:AS add is enabled.
Note.pngNote:This parameter is disabled since Counter-Strike: Global Offensive due to conflicts with cascade shadow mapping.

Syntax

$halflambert 1