$halflambert: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note:Since Source 2007, this parameter is forced on regardless of 
		
	
Deprecated (talk | contribs)  (Added that $phong forces this on, based on comments of ASW code)  | 
				Deprecated (talk | contribs)   (Rewrite to be more in line with other shader parameters)  | 
				||
| 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)]]  | ||
'''<code>$halflambert</code>''' is a [[VMT]] command which 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]], this parameter 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 23:23, 6 May 2019
$halflambert is a VMT command which enables half-lambertian lighting, which wraps lighting further around a model to prevent it from losing definition. It only works on models.
$halflambert setting when $phong is enabled, unless $phongDisableHalfLambertTemplate:AS add is enabled.Syntax
$halflambert 1