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

Tip:
Kestrelguy (talk | contribs) (added language bar. is a stub.) |
No edit summary |
||
Line 8: | Line 8: | ||
<source lang=php>$maxfogdensityscalar "0.97"</source> | <source lang=php>$maxfogdensityscalar "0.97"</source> | ||
== Caveats == | == Caveats == | ||
Line 15: | Line 13: | ||
Does not work in {{tf2|2}}. | Does not work in {{tf2|2}}. | ||
[[Category:Shader parameters|m]] |
Revision as of 09:59, 15 August 2023


Template:ShaderparamIt modulates the amount of fog the material receives.

maxfogdensityscalar
is useful for modulating lit materials in foggy maps. For example in L4D2's Hard Rain campaign, this is used on the gas station in the 3D skybox to make it visible as a landmark through opaque fog.Usage
$maxfogdensityscalar "0.97"
Caveats
Only tested in Left 4 Dead 2, support in other games not verified. Not known how cheap or expensive it is.
Does not work in Team Fortress 2.