Class Environment
Represents the global environment settings for a scene.
class Environment
: dlib .core .ownership .Owner;
Constructors
| Name | Description |
|---|---|
this
(owner)
|
Constructs an Environment object.
|
Fields
| Name | Type | Description |
|---|---|---|
ambientBRDF
|
Texture | The ambient BRDF lookup texture. |
ambientColor
|
dlib | The ambient light color. |
ambientEnergy
|
float | The ambient light energy multiplier. |
ambientMap
|
Texture | The ambient light texture map. |
backgroundColor
|
dlib | The background color of the scene. |
fogColor
|
dlib | The color of the fog. |
fogEnd
|
float | The distance at which fog ends. |
fogStart
|
float | The distance at which fog starts. |
sun
|
Light | The main directional light (sun) in the scene. |
terrainMaterial
|
TerrainMaterial | The terrain material for the scene. |
Description
The Environment class stores background color, ambient lighting,
fog parameters, sun light, and terrain material. It is used to control
atmospheric effects in the renderer.