$maxfogdensityscalar: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Replacing with "This is a" template)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The $maxfogdensityscalar when specified in a VertexLitGeneric material modulates the amount of fog the material receives.
{{LanguageBar}}


{{tip|$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.}}
{{stub}}
{{This is a|shader parameter|name=$maxfogdensityscalar|shader=VertexLitGeneric|game=Left 4 Dead 2}} It modulates the amount of fog the material receives.
 
{{tip|<code>maxfogdensityscalar</code> 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 ==
== Usage ==
Line 7: Line 10:
<source lang=php>$maxfogdensityscalar "0.97"</source>
<source lang=php>$maxfogdensityscalar "0.97"</source>


[[Category:List of Shader Parameters|M]]
== Caveats ==
Only tested in {{l4d2|2}}, support in other games not verified. Not known how cheap or expensive it is.


== Caveats ==
Does not work in {{tf2|2}}.
Only tested in L4D2, support in other games not verified. Not known if its cheap or expensive.


Does not work in Team Fortress 2.
[[Category:Shader parameters|maxfogdensityscalar]]

Latest revision as of 10:13, 10 August 2024

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

$maxfogdensityscalar is a material shader parameter for the VertexLitGeneric shader available in Left 4 Dead 2 Left 4 Dead 2. It modulates the amount of fog the material receives.

Tip.pngTip: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 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 Team Fortress 2.