@huukhanhnguyen/types / evaluate/environment
evaluate/environment
ResolvedEnvironment
ResolvedEnvironment = {
groundColor?:string;hdri?:EnvironmentHdri;skyColor?:string;skyLux?:number;sun?:Sun; }
groundColor?
optionalgroundColor?:string
hdri?
optionalhdri?:EnvironmentHdri
skyColor?
optionalskyColor?:string
skyLux?
optionalskyLux?:number
sun?
optionalsun?:Sun
Sun
Sun = {
direction:Vector;kelvin?:number;lux:number; }
The sun as a lit direction — COMPUTED from Environment.site + moment, never stored. Absent from a ResolvedEnvironment whenever either input is missing; present with direction[2] < 0 when the site's sun is below the horizon at that moment, which is a night study, not an error.
direction
direction:
Vector
Unit vector TOWARD the sun, Z-up world space.
kelvin?
optionalkelvin?:number
Colour temperature (K).
lux
lux:
number
Direct illuminance (lux) at the model.