Skip to main content

Function: integrateSurfaceWeather()

integrateSurfaceWeather(state, rates, elapsedSeconds): SurfaceWeatherState

Defined in: modules/lighting/surface-weather/surface-weather.ts:28

Exact integration of bounded accumulation/decay for a constant-rate interval. Caller owns the state, clock, rates and any spatial exposure map. Pausing requires no GPU state.

Parameters​

state​

Readonly<SurfaceWeatherState>

rates​

Readonly<SurfaceWeatherRates>

elapsedSeconds​

number

Returns​

SurfaceWeatherState