Describes the fog (depth fading) in the scene.
![]()
|
This template corresponds to the CSLFog class. |
Softimage does not export this template. If a dotXSI file contains this template, Softimage ignores it.
1.3
SI_Fog <fog_name> {
<type>;
<interpolation>;
<color>;
<near>;
<far>;
}
|
Member name |
Description |
|
type |
Indicates whether the fog is of type vertex or pixel. Vertex fog is where the rendering engine computes the vertex colors normally, and then modifies given vertex distance to camera and simply linearly interpolates on surfaces. Pixel fog is where the normal rendering color is computed, and then the color is modulated using the Z-buffer pixel value. Possible values: 0 = vertex 1 = pixel Note: SI|3D supports vertex fog only. |
|
interpolation |
0 = linear (depth cue) 1 = exponential |
|
color |
Color (RGB) of fog. |
|
near |
Distance at which fog starts (everything before this is unmodified). |
|
far |
Distance at which fog stops (everything beyond this has the fog’s color). |
SI_Fog myFog { 0; // vertex fog 0; // linear interpolation 0.0; 0.0; 1.0;; // blue fog 10.0; // fog starts at 10 units along camera->interest vector 100.0; // fog stops at 100 units along camera->interest vector }
Autodesk Crosswalk v4.0