Unravel Engine C++ Reference
Loading...
Searching...
No Matches
perez_luminance.h
Go to the documentation of this file.
1#pragma once
2
3#include <math/math.h>
4
5namespace unravel
6{
7
15void compute_perez_luminance(const math::vec3& light_direction,
16 math::vec3& out_sky_luminance_rgb,
17 math::vec3& out_sun_luminance_rgb);
18
23{
24 math::vec3 sun_direction;
29 float perez_coeff[5][4];
30};
31
32void compute_irradiance_perez_params(const math::vec3& light_direction,
33 float turbidity,
35
36} // namespace unravel
void 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 ...
void compute_irradiance_perez_params(const math::vec3 &light_direction, float turbidity, irradiance_perez_params &out)
Full Perez params for irradiance SH compute shader (mode 1).