Shader: "fog light"

"fog light"

ClassForeground
Synopsis Volumetric lighting with point or spot light sources (illuminated fog effect around lights).
Arguments

"fog density" Type: LtFloat
Default:0.01
Range:[ 0, inf ]
Hint:[ 0, 100 ]
Locationlishclas
Description

Atmospheric scattering from point and spot light sources. A constant distribution of particles in the atmosphere is assumed.

The light fall-off used in the scattering computations is 1/d2, so light sources tend to look saturated near their centre. Light sources should therefore also use a 1/d2 type fall-off ( ISL or ISL_NO_CLAMP) for consistency between atmospheric and surface shading.

Also note that spot lights should have an almost constant angular intensity distribution (i.e., a hard-edged illumintation cone). Volumetric shadows are not implemented by this shader.

Previous page alphabetically (fog)
Next page alphabetically (foregroundscaledimage)
Index


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