Utah Sun & Sky Model (uthSnSkM)
key: uthSnSkM
type: fffffffC(C)*
- float: Turbidity, a measure of haze in the atmosphere, must >=
1.0 (e.g., 2.0 for a pretty clear day or 10.0 for an overcast
day)
- float: x component of direction to the Sun
- float: y component of direction to the Sun
- float: z component of direction to the Sun (direction an
observer would look to see the sun)
- float: x component of up direction
- float: y component of up direction
- float: z component of up direction (direction an observer would
look to see the top (zenith) of the sky)
- int: Mode (0 means include both the Sun & Sky, 1 is Sun only,
2 is Sky only)
- chunk: Color for ground reflectance (used to compute a ground
color when looking below the horizon)
- optional additional chunks: none are currently used
Description
Includes a model of the Sun and Sky using the model published in "A
Practical Analytic Model For Daylight" by Preetham et. al.,
SIGGRAPH 1999
Examples
% sun sky model
uthSnSkM
2.0 %turbidity
0.4 0.2 0.7 %sun vector
0.0 0.0 1.0 %up vector
0 %include both sun and sky
rgb 0.1 0.15 0.05 end %ground reflectance
end