2#include "scene/Scene.hpp"
3#include "scene/Sky.hpp"
22 static glm::vec3
eval(
const glm::vec3 & rayOrigin,
const glm::vec3 & rayDir,
const glm::vec3 & sunDir);
36 static float miePhase(
float cosAngle);
CPU methods for evaluating the atmospheric scattering model used by the sky background.
Definition: MaterialSky.hpp:10
static float miePhase(float cosAngle)
Definition: MaterialSky.cpp:94
static float rayleighPhase(float cosAngle)
Definition: MaterialSky.cpp:89
static const uint samplesCount
Number of samples to evaluate along the ray.
Definition: MaterialSky.hpp:39
static glm::vec3 eval(const glm::vec3 &rayOrigin, const glm::vec3 &rayDir, const glm::vec3 &sunDir)
Definition: MaterialSky.cpp:6
static const Sky::AtmosphereParameters sky
Earth-like atmosphere parameters.
Definition: MaterialSky.hpp:38
Atmosphere parameters. Default values correspond to Earth-like atmosphere.
Definition: Sky.hpp:53