$maxfogdensityscalar: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Added example where valve used it in l4d2)
Line 1: Line 1:
The $maxfogdensityscalar when specified in a VertexLitGeneric material modulates the amount of fog the material receives.  
The $maxfogdensityscalar when specified in a VertexLitGeneric material modulates the amount of fog the material receives.  


{{tip|$maxfogdensityscalar is useful for modulating lit materials in foggy maps.}}
{{tip|$maxfogdensityscalar is useful for modulating lit materials in foggy maps. For example in L4D2 this makes in Hard Rain the Gas Truckstop sign visible as a landmark through opaque fog}}


== Usage ==
== Usage ==

Revision as of 19:08, 8 February 2018

The $maxfogdensityscalar when specified in a VertexLitGeneric material modulates the amount of fog the material receives.

Tip.pngTip:$maxfogdensityscalar is useful for modulating lit materials in foggy maps. For example in L4D2 this makes in Hard Rain the Gas Truckstop sign visible as a landmark through opaque fog

Usage

$maxfogdensityscalar "0.97"

Caveats

Only tested in L4D2, support in other games not verified.