|
FhSim
3.1.0
Marine systems simulation
|
#include <SkyModel.h>
Public Member Functions | |
| SkyModel (const Atmosphere &atmosphere, const Vec3 &sunDirection, double cameraAltitude=10.0) | |
| Rgb | Radiance (const Vec3 &direction, int steps=32) const |
| Rgb | SunIrradiance (double altitude) const |
| Rgb | SunIrradiance () const |
| Direct sun irradiance at the eye (see SunIrradiance(double)). | |
| Rgb | SunDiscRadiance () const |
| Mean radiance of the sun's disc at the eye [1/sr]: SunIrradiance() / (pi radius^2). | |
| Rgb | SkyIrradiance (int samples=24) const |
| Rgb | Transmittance (double r, double mu) const |
| const Atmosphere & | Air () const |
| const Vec3 & | SunDirection () const |
| double | Altitude () const |
| Rgb | MeanExtinctionBelow (double h) const |
The clear sky seen from one point above the sea, for one sun direction.
The constructor fills the transmittance and multiple-scattering tables (a few ms).
| visual::sky::SkyModel::SkyModel | ( | const Atmosphere & | atmosphere, |
| const Vec3 & | sunDirection, | ||
| double | cameraAltitude = 10.0 |
||
| ) |
| [in] | atmosphere | The atmosphere. |
| [in] | sunDirection | Towards the sun, NED, unit (may be below the horizon). |
| [in] | cameraAltitude | Height of the eye above the sea [m], clamped to at least 1 m. |
|
inline |
|
inline |
| Rgb visual::sky::SkyModel::MeanExtinctionBelow | ( | double | h | ) | const |
Sky radiance seen in a direction, without the sun's disc, per unit solar irradiance [1/sr].
Below the horizon the ray ends at the sea: the result is only the air light in front of it.
| [in] | direction | View direction, NED, unit. |
| [in] | steps | Number of march steps. |
| Rgb visual::sky::SkyModel::SkyIrradiance | ( | int | samples = 24 | ) | const |
Irradiance of the clear sky (not the sun) on a horizontal surface at the eye, per unit solar irradiance.
| [in] | samples | Directions per axis of the hemisphere quadrature. |
|
inline |
| Rgb visual::sky::SkyModel::SunIrradiance | ( | double | altitude | ) | const |
Direct sun irradiance at an altitude, on a plane normal to the beam, per unit solar irradiance. Zero when the sun is below the horizon there.
| Rgb visual::sky::SkyModel::Transmittance | ( | double | r, |
| double | mu | ||
| ) | const |
Transmittance from radius r along a ray of zenith cosine mu to the top of the atmosphere (ignores the ground).
| [in] | r | Distance from the centre of the Earth [m]. |
| [in] | mu | Cosine of the ray's zenith angle. |