19 #ifndef _SKYBRIGHT_HPP_ 20 #define _SKYBRIGHT_HPP_ 50 void setDate(
const int year,
const int month,
const float moonPhase);
57 void setLocation(
const float latitude,
const float altitude,
const float temperature=15.f,
const float relativeHumidity=40.f);
63 void setSunMoon(
const float cosDistMoonZenith,
const float cosDistSunZenith);
69 float getLuminance(
float cosDistMoon,
const float cosDistSun,
const float cosDistZenith)
const;
87 #endif // _SKYBRIGHT_HPP_ void setSunMoon(const float cosDistMoonZenith, const float cosDistSunZenith)
Set the moon and sun zenith angular distance (cosin given) and precompute what can be This function h...
float getLuminance(float cosDistMoon, const float cosDistSun, const float cosDistZenith) const
Compute the luminance at the given position.
This class makes use of the 1998 sky brightness model by Bradley Schaefer.
void setLocation(const float latitude, const float altitude, const float temperature=15.f, const float relativeHumidity=40.f)
Set the position parameters to use for atmosphere computation.
void setDate(const int year, const int month, const float moonPhase)
Set the sky date to use for atmosphere computation.