31std::vector<float>
ReadRadianceHdr(
const std::string& path,
int& width,
int& height);
41 SkyImage(std::vector<float> rgb,
int width,
int height,
double azimuthDeg);
47 bool HasSun()
const {
return m_hasSun; }
56 Vec3 Direction(
double column,
double row)
const;
59 std::vector<float> m_rgb;
63 bool m_hasSun =
false;
64 Vec3 m_sunDirection {0.0, 0.0, -1.0};
65 Rgb m_sunIrradiance {0.0, 0.0, 0.0};
bool HasSun() const
Definition SkyImage.h:47
Rgb SkyIrradiance() const
Rgb Radiance(const Vec3 &direction) const
Radiance in a direction (NED, unit), the sun taken out; bilinear.
const Vec3 & SunDirection() const
Definition SkyImage.h:49
SkyImage(std::vector< float > rgb, int width, int height, double azimuthDeg)
const Rgb & SunIrradiance() const
Definition SkyImage.h:51
Definition CloudLayer.h:24
std::array< double, 3 > Vec3
A direction or position, NED unless stated.
Definition SkyModel.h:29
std::array< double, 3 > Rgb
Red, green, blue.
Definition SkyModel.h:27
std::vector< float > ReadRadianceHdr(const std::string &path, int &width, int &height)