Blender
V3.3
|
Go to the source code of this file.
Functions | |
void | EEVEE_sample_ball (int sample_ofs, float radius, float rsample[3]) |
void | EEVEE_sample_rectangle (int sample_ofs, const float x_axis[3], const float y_axis[3], float size_x, float size_y, float rsample[3]) |
void | EEVEE_sample_ellipse (int sample_ofs, const float x_axis[3], const float y_axis[3], float size_x, float size_y, float rsample[3]) |
void | EEVEE_random_rotation_m4 (int sample_ofs, float scale, float r_mat[4][4]) |
Definition at line 93 of file eevee_sampling.c.
References BLI_halton_3d(), and rotate_m4().
Referenced by EEVEE_shadows_cube_setup().
Special ball distribution: Point are distributed in a way that when they are orthogonally projected into any plane, the resulting distribution is (close to) a uniform disc distribution.
Definition at line 12 of file eevee_sampling.c.
References BLI_halton_3d(), cosf, fmaxf, M_PI, mul_v3_fl(), r, sinf, sqrt(), and sqrtf.
Referenced by shadow_cube_random_position_set().
void EEVEE_sample_ellipse | ( | int | sample_ofs, |
const float | x_axis[3], | ||
const float | y_axis[3], | ||
float | size_x, | ||
float | size_y, | ||
float | rsample[3] | ||
) |
Definition at line 64 of file eevee_sampling.c.
References BLI_halton_2d(), cosf, M_PI, madd_v3_v3fl(), r, sinf, sqrtf, and zero_v3().
Referenced by shadow_cascade_random_matrix_set(), and shadow_cube_random_position_set().
void EEVEE_sample_rectangle | ( | int | sample_ofs, |
const float | x_axis[3], | ||
const float | y_axis[3], | ||
float | size_x, | ||
float | size_y, | ||
float | rsample[3] | ||
) |
Definition at line 38 of file eevee_sampling.c.
References BLI_halton_2d(), madd_v3_v3fl(), and zero_v3().
Referenced by shadow_cube_random_position_set().