$halflambert: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Replace deprecated template)
No edit summary
Line 10: Line 10:
  $halflambert 1
  $halflambert 1


[[Category:List of Shader Parameters|H]][[Category:VMT Lighting]]
[[Category:Shader parameters|h]][[Category:VMT Lighting]]

Revision as of 09:54, 15 August 2023

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 $phongdisablehalflambert(in all games since Alien Swarm) is enabled.
Note.pngNote:This parameter is disabled since Counter-Strike: Global Offensive due to conflicts with cascade shadow mapping.

Syntax

$halflambert 1