$halflambert gbuffer off: Difference between revisions
MyGamepedia (talk | contribs) No edit summary |
MyGamepedia (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
{{This is a|shader parameter|name=$halflambert_gbuffer_off|shader=VertexLitGeneric|game=Black Mesa}} This game provides [[$halflambert]] effect separately for [[NewLight Point|new lights]]. It is activated by default (only if {{command|nr_lights_quality}} is 3 and higher), that's why there is this parameter that allows you to turn it off. This effect looks pretty nice for objects that don't cast any dynamic shadows, such as {{ent|viewmodel}}. However, this effect has a negative impact on objects and new lights with enabled shadows, also [[Half Lambert|half lambert]] isn't physically accurate and is similar to how translucency works. The only good it really does is making up for bad ambient lighting. So this effect should be turned off. The parameter takes [[Bool|bool]] value (1 or 0). | {{back | Black Mesa Level Creation}} | ||
{{This is a|shader parameter|name=$halflambert_gbuffer_off|shader=VertexLitGeneric|game=Black Mesa}} This game provides [[$halflambert]] effect separately for [[NewLight Point|new lights]]. It is activated by default (only if {{command|nr_lights_quality}} is 3 and higher and if [[$phong]] is enabled), that's why there is this parameter that allows you to turn it off. This effect looks pretty nice for objects that don't cast any dynamic shadows, such as {{ent|viewmodel}}. However, this effect has a negative impact on objects and new lights with enabled shadows, also [[Half Lambert|half lambert]] isn't physically accurate and is similar to how translucency works. The only good it really does is making up for bad ambient lighting. So this effect should be turned off. The parameter takes [[Bool|bool]] value (1 or 0). | |||
{{expand|title=Examples.| | {{expand|title=Examples.| | ||
<gallery mode=packed heights=250px> | <gallery mode=packed heights=250px> | ||
File:gbufferhalflambert_on.jpg|Gbuffer's half lambert is enabled. Shadows are | File:gbufferhalflambert_on.jpg|Gbuffer's half lambert is enabled. Shadows are disabled. | ||
File:gbufferhalflambert_off.jpg|Gbuffer's half lambert is disabled. Shadows are | File:gbufferhalflambert_off.jpg|Gbuffer's half lambert is disabled. Shadows are disabled. | ||
File:gbufferhalflambert_shadow_on.jpg|Gbuffer's half lambert is enabled. Shadows are enabled. | File:gbufferhalflambert_shadow_on.jpg|Gbuffer's half lambert is enabled. Shadows are enabled. | ||
File:gbufferhalflambert_shadow_off.jpg|Gbuffer's half lambert is disabled. Shadows are enabled. | File:gbufferhalflambert_shadow_off.jpg|Gbuffer's half lambert is disabled. Shadows are enabled. | ||
Line 10: | Line 11: | ||
}} | }} | ||
== External links == | == External links == | ||
[https://steamcommunity.com/sharedfiles/filedetails/?id=3160360493 Newlight Directionality Fix] - workshop addon that disabled gbuffer's half lambert for all materials | [https://steamcommunity.com/sharedfiles/filedetails/?id=3160360493 Newlight Directionality Fix] - workshop addon that disabled gbuffer's half lambert for all materials (if [[$phong]] is enabled) from the original game. |
Latest revision as of 05:37, 12 January 2025
$halflambert_gbuffer_off
is a material shader parameter for the VertexLitGeneric shader available in Black Mesa. This game provides $halflambert effect separately for new lights. It is activated by default (only if nr_lights_quality is 3 and higher and if $phong is enabled), that's why there is this parameter that allows you to turn it off. This effect looks pretty nice for objects that don't cast any dynamic shadows, such as viewmodel. However, this effect has a negative impact on objects and new lights with enabled shadows, also half lambert isn't physically accurate and is similar to how translucency works. The only good it really does is making up for bad ambient lighting. So this effect should be turned off. The parameter takes bool value (1 or 0).
|
External links
Newlight Directionality Fix - workshop addon that disabled gbuffer's half lambert for all materials (if $phong is enabled) from the original game.