Blender V4.3
blender::eevee::ShadowTileMap Struct Reference

#include <eevee_shadow.hh>

Inherits blender::eevee::ShadowTileMapData.

Public Member Functions

 ShadowTileMap (int tiles_index_)
 
void set_dirty ()
 
void set_updated ()
 
Tile map
void sync_orthographic (const float4x4 &object_mat_, int2 origin_offset, int clipmap_level, eShadowProjectionType projection_type_, uint2 shadow_set_membership_=~uint2(0))
 
void sync_cubeface (eLightType light_type_, const float4x4 &object_mat, float near, float far, eCubeFace face, uint2 shadow_set_membership_=~uint2(0))
 
void debug_draw () const
 

Public Attributes

int level = INT_MAX
 
eCubeFace cubeface = Z_NEG
 
float4x4 object_mat
 
- Public Attributes inherited from blender::eevee::ShadowTileMapData
float4x4 viewmat
 
float4x4 winmat
 
float4 corners [4]
 
int2 grid_offset
 
int2 grid_shift
 
eShadowProjectionType projection_type
 
int tiles_index
 
int clip_data_index
 
eLightType light_type
 
bool32_t is_dirty
 
int effective_lod_min
 
float _pad2
 
float clip_near
 
float clip_far
 
float half_size
 
float2 center_offset
 
uint2 shadow_set_membership
 
uint2 _pad3
 

Static Public Attributes

static constexpr int64_t tile_map_resolution = SHADOW_TILEMAP_RES
 
static constexpr int64_t tiles_count = tile_map_resolution * tile_map_resolution
 

Detailed Description

Definition at line 70 of file eevee_shadow.hh.

Constructor & Destructor Documentation

◆ ShadowTileMap()

Member Function Documentation

◆ debug_draw()

◆ set_dirty()

void blender::eevee::ShadowTileMap::set_dirty ( )
inline

◆ set_updated()

void blender::eevee::ShadowTileMap::set_updated ( )
inline

Definition at line 113 of file eevee_shadow.hh.

References blender::eevee::ShadowTileMapData::is_dirty.

◆ sync_cubeface()

◆ sync_orthographic()

Member Data Documentation

◆ cubeface

eCubeFace blender::eevee::ShadowTileMap::cubeface = Z_NEG

Cube face index.

Definition at line 77 of file eevee_shadow.hh.

Referenced by debug_draw(), and sync_cubeface().

◆ level

int blender::eevee::ShadowTileMap::level = INT_MAX

Level of detail for clipmap.

Definition at line 75 of file eevee_shadow.hh.

Referenced by debug_draw().

◆ object_mat

float4x4 blender::eevee::ShadowTileMap::object_mat

Cached, used for detecting updates.

Definition at line 79 of file eevee_shadow.hh.

Referenced by sync_cubeface(), and sync_orthographic().

◆ tile_map_resolution

int64_t blender::eevee::ShadowTileMap::tile_map_resolution = SHADOW_TILEMAP_RES
staticconstexpr

◆ tiles_count

int64_t blender::eevee::ShadowTileMap::tiles_count = tile_map_resolution * tile_map_resolution
staticconstexpr

Definition at line 72 of file eevee_shadow.hh.


The documentation for this struct was generated from the following files: