Skylight environment
From Eclat-Digital Ocean 2014 Documentation
Description
The skylight environment simulates sun and the atmosphere lighting of the earth's surface. It is based on the work A Practical Analytic Model for Daylight - University of Utah. Sky polarization is modeled according to An Analytical Model for Skylight Polarisation, Wilkie et al.(2004)
The zenith direction (or normal to the horizon plane) may be set to any value in scene coordinates.
The sun position can be adjusted to any direction in the sky. The turbidity parameter controls the amount of scattering due to mist and dust. It can be set to any value between 2 and 6.
Children nodes
none
Parameters
- sunpos
- vec3
- The sun direction
- turbidity
- real
- The turbidity, or haziness, of the atmosphere. Must be between 2 and 6
- atmosphere
- boolean
- Disabling this removes the atmosphere, which simulates the sun viewed from space.
- zenith
- vec3
- Zenith direction
Ocean XML 2.0 example
<?xml version="1.0" encoding="UTF-8"?> <oceanroot version="2.0"> <environment type="skylight" name="skylight"/> <prm sunpos="0.839081 -0.427533 0.336392"/> <prm turbidity="2"/> <prm atmosphere="true"/> <prm zenith="0 0 1"/> </environment> </oceanroot>