Shader: "depth cue"

"depth cue"

ClassForeground
Synopsis A linear attenuation within a specified depth range.
Arguments

"near" Type: LtFloat
Default:0.0
Range:[ 0, inf ]
Hint:-
"far" Type: LtFloat
Default:1000.0
Range:[ 0, inf ]
Hint:-
"background colour" Type: LtColour
Default:(0.0, 0.0, 0.0)
Range: [ 0, inf ], [ 0, inf ], [ 0, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
Locationlishlite
Description A foreground shader that adds a background colour specified by parameter "background colour" according to the distance of the surface from the viewer. At distances less than that given as "near", no background colour is added. At distances greater than "far", the full background colour is returned. Between the two distances, the output is linearly interpolated between the surface and background colours. The effect is that depth information in the geometry is enhanced in the final image.

Previous page alphabetically (decalreflectance)
Next page alphabetically (depthoffield)
Index


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