|
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Class | Foreground | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Synopsis |
Foreground shader that simulates the effect of fog, making distant objects harder to see than nearer ones.
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Arguments |
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Location | lishlite | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 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) | ||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 1990-2005, 2006 LightWork Design Limited. All rights reserved | |||||||||||||||||||||||||||||||||||||||||||||||||||