$halflambert: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Added that $phong forces this on, based on comments of ASW code)
Line 4: Line 4:


Requires <code>[[VertexLitGeneric]]</code>.
Requires <code>[[VertexLitGeneric]]</code>.
{{note|This paramater is forced on regardless of <code>$halflambert</code> setting when <code>[[phong|$phong]]</code> is enabled, unless <code>$phongDisableHalfLambert</code>{{AS add}} is enabled.}}


==Syntax==
==Syntax==

Revision as of 18:58, 24 April 2019

Lambertian (left) and Half Lambertian (right)

Implements Half Lambert lighting, which wraps lighting further around a model to prevent it losing definition.

Requires VertexLitGeneric.

Note.pngNote:This paramater is forced on regardless of $halflambert setting when $phong is enabled, unless $phongDisableHalfLambertTemplate:AS add is enabled.

Syntax

$halflambert 1