$halflambert: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note:Since Source 2007, half-lambertian lighting is forcibly enabled on 
		
	
Deprecated (talk | contribs)  (Added shaders this works on, further information on note)  | 
				Deprecated (talk | contribs)   (This parameter is disabled in CSGO)  | 
				||
| Line 4: | Line 4: | ||
{{note|Since [[Source 2007]], half-lambertian lighting is forcibly enabled on <code>VertexLitGeneric</code> regardless of <code>$halflambert</code> setting when <code>[[phong|$phong]]</code> is enabled, unless <code>$phongDisableHalfLambert</code>{{AS add}} is enabled.}}  | {{note|Since [[Source 2007]], half-lambertian lighting is forcibly enabled on <code>VertexLitGeneric</code> regardless of <code>$halflambert</code> setting when <code>[[phong|$phong]]</code> is enabled, unless <code>$phongDisableHalfLambert</code>{{AS add}} is enabled.}}  | ||
{{note|This parameter is disabled in {{csgo}} due to conflicts with cascade shadow mapping.}}  | |||
==Syntax==  | ==Syntax==  | ||
Revision as of 13:31, 28 April 2021
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.
VertexLitGeneric regardless of $halflambert setting when $phong is enabled, unless $phongDisableHalfLambertTemplate:AS add is enabled.Syntax
$halflambert 1