Shader: "fog"

"fog"

ClassForeground
Synopsis Foreground shader that simulates the effect of fog, making distant objects harder to see than nearer ones.
Arguments

"distance" Type: LtFloat
Default:1000.0
Range:[ 0, inf ]
Hint:-
"fog colour" Type: LtColour
Default:(1.0, 1.0, 1.0)
Range: [ 0, inf ], [ 0, inf ], [ 0, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"max density" Type: LtFloat
Default:1.0
Range:[ 0, 1 ]
Hint:-
"ignore background" Type: LtBoolean
Default:TRUE
Range:-
Hint:-
Locationlishlite
Description A foreground shader that implements atmospheric absorption to create a `fog' effect. The contribution made by the fog whose colour is given by "fog colour", is attenuated asymptotically using the formulation: 1 - e-d where d is the distance of the shading point divided by the reference distance supplied as "distance". Increasing this value advances the fog further from the viewer.

The density of the fog is clamped to a maximum value specified by parameter "max density". By default this value is 1.0. Values between 0.0 and 1.0 are sensible---values less than zero will be interpreted as zero and values greater than one will be interpreted as one.

The fog effect can be enabled or disabled for background pixels using "ignore background". By default this is set to TRUE, i.e., there is no fog effect applied to background pixels.

Previous page alphabetically (flares3d)
Next page alphabetically (foglight)
Index


Copyright © 1990-2005, 2006 LightWork Design Limited. All rights reserved