Research:Weather

Sun glare
TitleCaps variables indicate values taken from the morrowind.ini section related to that object.

Glare magnitude calculation

Rendering

Comments
There is an issue with the colour specification. The default SunGlareFaderColor is sRGB [222,095,039], which is very red compared to the actual rendering. This is due to the game setting the ambient, diffuse and emissive materials to the SunGlareFaderColor, in combination with pure white ambient lighting for this effect (but no diffuse due to lack of normals). This essentially multiplies the colour by 2, which is then clamped by the fixed function pipeline, causing a final colour of light orange.

Wind speed
The game runs a simulation tick for weathers each frame. While transitioning between weathers, it simulates both the current and next weather. It stores wind velocity for both current and next weather, and interpolates between them after simulating the weathers. For interiors, wind speed is zero.

Common pre-calculation for all weathers

Clear, Cloudy, Fog, Overcast, Snow, Blizzard

Rain, Storm

Ashstorm, Blight

Comments
Final wind velocity is interpolated between weatherState.windVelocityCurrentWeather and weatherState.windVelocityNextWeather, or is zero for interiors.