Unravel Engine C++ Reference
Loading...
Searching...
No Matches
perez_luminance.h File Reference
#include <math/math.h>

Go to the source code of this file.

Classes

struct  unravel::irradiance_perez_params
 Full Perez params for irradiance SH compute shader (mode 1). More...
 

Namespaces

namespace  unravel
 

Functions

void unravel::compute_perez_luminance (const math::vec3 &light_direction, math::vec3 &out_sky_luminance_rgb, math::vec3 &out_sun_luminance_rgb)
 Computes Perez sky and sun luminance from light direction (time-of-day). Uses the same tables as the atmospheric pass for consistency.
 
void unravel::compute_irradiance_perez_params (const math::vec3 &light_direction, float turbidity, irradiance_perez_params &out)