Skip to content

Environment (skybox, IBL, fog)

The scene’s environment settings control the world around your objects — background, ambient fill, fog, and image-based lighting. They live in the environment block of a scene (packages/engine/src/scene/schema/environment.ts) and are edited in the inspector when nothing is selected.

An HDR/EXR skybox becomes a PMREM env map that lights PBR materials
Skybox → image-based lighting.
  • background — a CSS hex background color.
  • ambient — a flat ambient light { color, intensity } that lifts shadows everywhere.

fog has a type of linear or exponential:

  • linearcolor, near (start), far (full) distance.
  • exponentialcolor, density.

Set skybox to the path of an environment map. The loader runs it through a PMREMGenerator and assigns it to both scene.background and scene.environment, so it shows as the background and lights and reflects every PBR material — the single biggest upgrade to a scene’s realism. envMapIntensity scales how strongly the env map contributes to reflections.