Class Environment

Represents the global environment settings for a scene.

class Environment
  : dlib.core.ownership.Owner;

Constructors

NameDescription
this (owner) Constructs an Environment object.

Fields

NameTypeDescription
ambientBRDF TextureThe ambient BRDF lookup texture.
ambientColor dlib.image.color.Color4fThe ambient light color.
ambientEnergy floatThe ambient light energy multiplier.
ambientMap TextureThe ambient light texture map.
backgroundColor dlib.image.color.Color4fThe background color of the scene.
fogColor dlib.image.color.Color4fThe color of the fog.
fogEnd floatThe distance at which fog ends.
fogStart floatThe distance at which fog starts.
sun LightThe main directional light (sun) in the scene.
terrainMaterial TerrainMaterialThe 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.