Script v1.4.4.0
Engine v7.0.0.2
- General
- Entity
- Node
- Scenegraph
- Lighting
- Camera
- Shape
- Particle System
- Physics
- Spline
- Animation
- Overlays
- Sound
- Input
- XML
- Network
- Callbacks
- Text Rendering
- Terrain Detail
- Tire Track
- Editor
- Rendering
- String
- Math
- I3D
- Fillplanes
Foundation Reference
setFog
DescriptionSet fog propertiesDefinition
setFog(string fogType, float startDistanceOrDensity, float endDistance, float r, float g, float b)Arguments
string | fogType | fog type ("none", "linear", "exp" or "exp2") |
float | startDistanceOrDensity | start distance (linear) or density (exp and exp2) |
float | endDistance | end distance (linear) |
float | r | red color component [0, 1] |
float | g | green color component [0, 1] |
float | b | blue color component [0, 1] |