The scene's lighting settings, read at each frame.
Equirectangular image of the environment, HDR, loaded by the application (e.g. three.js
HDRLoader); null: a neutral room (three.js RoomEnvironment). Prefiltered by the backend
when another texture is set or it is updated (needsUpdate); while it loads (never updated),
the last map is kept. Ask for a frame after a change.
Intensity of the environment: its ratio over the sum of the three.
Intensity of the head light: its ratio over the sum of the three.
Intensity of the sun: its ratio over the sum of the three.
The head light as drawn: white times its intensity, linear.
Receives the colour.
target.
The direction towards the sun as drawn, from its azimuth and elevation: world (y up), normalized.
Receives the direction.
target.
The sun as drawn: its colour times its intensity, linear.
Receives the colour.
target.
How the objects of a Scene are lit, physically based (their colour, metalness and roughness): an environment map (ambient light and reflections), a head light (from the camera: every face seen is lit) and a sun (from a fixed direction), each of a ratio from 0 to 1 (the scene's
settings.lighting): its intensity is its ratio over the sum of the three, so that the intensities always sum to 1. This keeps the colours: a face lit by every light shows nearly its own colour (the tone mapping, Khronos PBR Neutral, lowers its darkest channel by 0.04 at most and compresses it above 0.76). Read by the backend at each frame.