Blender  V3.3
Functions
eevee_sampling.c File Reference
#include "eevee_private.h"
#include "BLI_rand.h"

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])
 

Function Documentation

◆ EEVEE_random_rotation_m4()

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().

◆ EEVEE_sample_ball()

void EEVEE_sample_ball ( int  sample_ofs,
float  radius,
float  rsample[3] 
)

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().

◆ EEVEE_sample_ellipse()

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] 
)

◆ EEVEE_sample_rectangle()

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().