$halflambert: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note:Since Source 2007, half-lambertian lighting is forcibly enabled on 
		
	
Deprecated (talk | contribs)  (Changed to use Shaderparam template)  | 
				Deprecated (talk | contribs)   (Added shaders this works on, further information on note)  | 
				||
| Line 1: | Line 1: | ||
[[Image:Alyx_lambert_half_lambert.jpg|right|200px|thumb|Lambertian (left) and Half Lambertian (right)]]  | [[Image:Alyx_lambert_half_lambert.jpg|right|200px|thumb|Lambertian (left) and Half Lambertian (right)]]  | ||
{{Shaderparam|$halflambert}} It enables [[Half Lambert|half-lambertian]] lighting, which wraps lighting further around a model to prevent it from losing definition. It only works on models.  | {{Shaderparam|$halflambert|shader1=VertexLitGeneric|shader2=Teeth|shader3=EyeRefract|shader4=VortWarp|shader5=Infected}} It is a boolean parameter that enables [[Half Lambert|half-lambertian]] lighting, which wraps lighting further around a model to prevent it from losing definition. It only works on models.  | ||
{{note|Since [[Source 2007]], half-lambertian lighting is   | {{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.}}  | ||
==Syntax==  | ==Syntax==  | ||
Revision as of 14:43, 28 July 2019
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