Go to the source code of this file.
Macros | |
#define | MAX_BRUTEFORCE_SAMPLING 8 |
Functions | |
float | projected_tri_area_simple (mat3 positions, vec3 p) |
float | projected_tri_area (mat3 positions, vec3 p, vec3 n, vec3 V, float phong_exp, float phong_scale, float phong_weight) |
vec3 | sample_projected_triangle (vec3 p, mat3 positions, vec2 rnd, out vec3 light_normal, out float projected_area) |
uint | get_light_stats_addr (uint cluster, uint light, uint side) |
void | sample_polygonal_lights (uint list_idx, vec3 p, vec3 n, vec3 gn, vec3 V, float phong_exp, float phong_scale, float phong_weight, bool is_gradient, out vec3 position_light, out vec3 light_color, out int light_index, out float projected_area, vec3 rng) |
void | sample_spherical_lights (vec3 p, vec3 n, vec3 gn, float max_solid_angle, out vec3 position_light, out vec3 light_color, vec3 rng) |
#define MAX_BRUTEFORCE_SAMPLING 8 |
Definition at line 23 of file light_lists.h.
Definition at line 96 of file light_lists.h.
Referenced by get_direct_illumination(), and sample_polygonal_lights().
float projected_tri_area | ( | mat3 | positions, |
vec3 | p, | ||
vec3 | n, | ||
vec3 | V, | ||
float | phong_exp, | ||
float | phong_scale, | ||
float | phong_weight | ||
) |
float projected_tri_area_simple | ( | mat3 | positions, |
vec3 | p | ||
) |
Definition at line 26 of file light_lists.h.
void sample_polygonal_lights | ( | uint | list_idx, |
vec3 | p, | ||
vec3 | n, | ||
vec3 | gn, | ||
vec3 | V, | ||
float | phong_exp, | ||
float | phong_scale, | ||
float | phong_weight, | ||
bool | is_gradient, | ||
out vec3 | position_light, | ||
out vec3 | light_color, | ||
out int | light_index, | ||
out float | projected_area, | ||
vec3 | rng | ||
) |
Definition at line 106 of file light_lists.h.
Referenced by get_direct_illumination().
vec3 sample_projected_triangle | ( | vec3 | p, |
mat3 | positions, | ||
vec2 | rnd, | ||
out vec3 | light_normal, | ||
out float | projected_area | ||
) |
void sample_spherical_lights | ( | vec3 | p, |
vec3 | n, | ||
vec3 | gn, | ||
float | max_solid_angle, | ||
out vec3 | position_light, | ||
out vec3 | light_color, | ||
vec3 | rng | ||
) |
Definition at line 267 of file light_lists.h.
Referenced by get_direct_illumination().