Env volumetric fog controller

From Valve Developer Community
Revision as of 19:04, 4 September 2022 by QuackCocaine (talk | contribs) (Created page with "{{Source2 point multi|env_volumetric_fog_controller|game1 = SteamVR Home|game2 = Half-Life: Alyx}} ==Entity description== Controller for volumetric fogging - bounds are exten...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Source2 point multi

Entity description

Controller for volumetric fogging - bounds are extents of fog irradiance volume (for indirect).

Keyvalues

Master Fog Controller (IsMaster) ([todo internal name (i)]) <boolean>
Use this as the active fog if there are more than one.
Fog strength (FogStrength) ([todo internal name (i)]) <float>
Technically the scattering value. Higher values make denser fog.
Draw distance (DrawDistance) ([todo internal name (i)]) <float>
Maximum distance to draw fog - WARNING! Changing from default will make fog blockier.
Fade-in start (FadeInStart) ([todo internal name (i)]) <float>
Distance from the eye at which fog starts to fade in.
Fade-in end (FadeInEnd) ([todo internal name (i)]) <float>
Distance from the eye at which fog finishes fading in and is at full strength.
Enable indirect lighting (IndirectEnabled) ([todo internal name (i)]) <boolean>
Indirect light strength (IndirectStrength) ([todo internal name (i)]) <float>
Indirect Lighting Dimension (IndirectVoxelDim) ([todo internal name (i)]) <choices>
Value Description
512 Very High Resolution (512x)
256 High Resolution (256x)
128 Medium Resolution (128x)
64 Low Resolution (64x)
Fade time (FadeSpeed) ([todo internal name (i)]) <float>
Sets fade in or out time (in seconds).
Anisotropy (Anisotropy) ([todo internal name (i)]) <float>
How much the fog should get brighter when you stare directly at the light.
Fog Irradiance Texture (fogirradiancevolume) ([todo internal name (i)]) <resource:texture>
Name of the fog irradiance texture.

Inputs

SetToDefaults <void>
Resets scattering and anisotropy to default values
SetFogStrength <floatRedirectInput/float>
Set overall fog strength
SetAnisotropy <floatRedirectInput/float>
Set anisotropy value
SetFadeSpeed <floatRedirectInput/float>
Set fade in/out speed
SetDrawDistance <floatRedirectInput/float>
Set draw distance
ForceRefresh <void>
Forces the fog volume to update if a light's state has changed
Enable <booleanRedirectInput/boolean>
Enable
Disable <booleanRedirectInput/boolean>
Disable
EnableIndirect <booleanRedirectInput/boolean>
Turns on/off indirect fogging


Outputs