TG Fog2 Ramp

PARAMETERS

Standard Surface Settings

Ambient, Diffuse, Shininess, Roughness, Specular Tint, Specular Colour

All these work in the conventional way, just as in other shaders. These parameters define the look of the material when unaffected by the fog.

Reflection Settings

Reflection Strength, Reflection Contribution

Again, these work in the conventional way, just as in other shaders, and add to the definition of the material when unaffected by the fog.

Clear Distance

Range : 0 to 3000

At or before this distance, the shader reads from the leftmost edge of the Ramp (for conventional use, this would be black, for no effect from the fog).

Fog Distance

Range : 0 to 3000

At or further than this distance, the shader reads from the rightmost edge of the Ramp (for conventional use, this would be white, for rendering with only the fog colour and no surface material effects).

Fog Ramp

Range : Image

Defines how the intensity of the fog varies with distance. The leftmost edge of the Ramp is read for points at or nearer than the “Clear Distance”, while the rightmost edge of the Ramp is read for points at or further than the “Fog Distance”.

Black represents no fog (that is, rendered with pure Standard Surface Settings and Reflection Settings), while white represents pure fog colour.

Fog Gradient

Range : Image

This controls the colour of the fog, which also varies with distance. Note that this is NOT read from the Ramp, but is read directly with distance, so that colour and fog strength can vary independently.

The left edge of the Gradient is read for points which are at or nearer than the “Near Distance”, while the right edge of the Gradient is read for points which are at or further than the “Far Distance”.

TG Fog2 Ramp Intro

TG Fog2 Ramp Parameters

TG Pack 3 Index