Blender  V3.3
Functions
eevee_shadows_cascade.c File Reference
#include "BLI_rect.h"
#include "BLI_sys_types.h"
#include "BKE_object.h"
#include "eevee_private.h"
#include "BLI_rand.h"

Go to the source code of this file.

Functions

void EEVEE_shadows_cascade_add (EEVEE_LightsInfo *linfo, EEVEE_Light *evli, Object *ob)
 
static void shadow_cascade_random_matrix_set (float mat[4][4], float radius, int sample_ofs)
 
static double round_to_digits (double value, int digits)
 
static void frustum_min_bounding_sphere (const float corners[8][3], float r_center[3], float *r_radius)
 
static void eevee_shadow_cascade_setup (EEVEE_LightsInfo *linfo, EEVEE_Light *evli, DRWView *view, float view_near, float view_far, int sample_ofs)
 
static void eevee_ensure_cascade_views (EEVEE_ShadowCascadeRender *csm_render, DRWView *view[MAX_CASCADE_NUM])
 
void EEVEE_shadows_draw_cascades (EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, DRWView *view, int cascade_index)
 

Function Documentation

◆ eevee_ensure_cascade_views()

static void eevee_ensure_cascade_views ( EEVEE_ShadowCascadeRender csm_render,
DRWView view[MAX_CASCADE_NUM] 
)
static

◆ eevee_shadow_cascade_setup()

static void eevee_shadow_cascade_setup ( EEVEE_LightsInfo linfo,
EEVEE_Light evli,
DRWView view,
float  view_near,
float  view_far,
int  sample_ofs 
)
static

◆ EEVEE_shadows_cascade_add()

void EEVEE_shadows_cascade_add ( EEVEE_LightsInfo linfo,
EEVEE_Light evli,
Object ob 
)

◆ EEVEE_shadows_draw_cascades()

void EEVEE_shadows_draw_cascades ( EEVEE_ViewLayerData sldata,
EEVEE_Data vedata,
DRWView view,
int  cascade_index 
)

◆ frustum_min_bounding_sphere()

static void frustum_min_bounding_sphere ( const float  corners[8][3],
float  r_center[3],
float r_radius 
)
static

◆ round_to_digits()

static double round_to_digits ( double  value,
int  digits 
)
static

Definition at line 60 of file eevee_shadows_cascade.c.

References ceil(), fabs(), and pow().

Referenced by frustum_min_bounding_sphere().

◆ shadow_cascade_random_matrix_set()

static void shadow_cascade_random_matrix_set ( float  mat[4][4],
float  radius,
int  sample_ofs 
)
static