$halflambert: Difference between revisions
Jump to navigation
Jump to search

Note:Since
Source 2007, half-lambertian lighting is forcibly enabled on
) is enabled.
Important:In
Black Mesa half-lambertian for new light is broken. The result is that meshes with $phong or $halflambert get lit from ALL sides perpendicular to newlights, including ones with opposing normals. If you want to use $phong or $halflambert - you are able to fix this with adding in your VMT material parameter
m (WisdomBot moved page $halflambert to $halflambert/en: Moved to {{Multipage}} compliant page name. This action was perfomed by a bot under supervision.) |
MyGamepedia (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
{{note|Since {{src07|4}}, half-lambertian lighting is forcibly enabled on <code>VertexLitGeneric</code> regardless of <code>$halflambert</code> setting when {{ent|$phong}} is enabled, unless <code>$phongdisablehalflambert</code>{{as|since}} is enabled.}} | {{note|Since {{src07|4}}, half-lambertian lighting is forcibly enabled on <code>VertexLitGeneric</code> regardless of <code>$halflambert</code> setting when {{ent|$phong}} is enabled, unless <code>$phongdisablehalflambert</code>{{as|since}} is enabled.}} | ||
{{note|This parameter is disabled since {{csgo}} due to conflicts with cascade shadow mapping.}} | {{note|This parameter is disabled since {{csgo}} due to conflicts with cascade shadow mapping.}} | ||
{{important|In {{bms|4}} half-lambertian for [[NewLight Point|new light]] is broken. The result is that meshes with [[$phong]] or [[$halflambert]] get lit from ALL sides perpendicular to newlights, including ones with opposing normals. If you want to use [[$phong]] or [[$halflambert]] - you are able to fix this with adding in your [[VMT]] material parameter <code>"$halflambert_gbuffer_off" "1"</code>.}} | |||
==Syntax== | ==Syntax== | ||
$halflambert 1 | $halflambert 1 |
Revision as of 01:19, 15 February 2024



This article needs more
links to other articles to help
integrate it into the encyclopedia. Please help improve this article by adding links
that are relevant to the context within the existing text.
January 2024



January 2024
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 $phongdisablehalflambert
(in all games since 


"$halflambert_gbuffer_off" "1"
.Syntax
$halflambert 1