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

#include <eevee_shader_shared.hh>

Inherited by blender::eevee::ShadowTileMap.

Public Attributes

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
 

Detailed Description

Small descriptor used for the tile update phase. Updated by CPU & uploaded to GPU each redraw.

Definition at line 1314 of file eevee_shader_shared.hh.

Member Data Documentation

◆ _pad2

float blender::eevee::ShadowTileMapData::_pad2

Definition at line 1337 of file eevee_shader_shared.hh.

◆ _pad3

uint2 blender::eevee::ShadowTileMapData::_pad3

Definition at line 1347 of file eevee_shader_shared.hh.

◆ center_offset

float2 blender::eevee::ShadowTileMapData::center_offset

Offset in local space to the tilemap center in world units. Used for directional winmat.

Definition at line 1344 of file eevee_shader_shared.hh.

Referenced by blender::eevee::ShadowTileMap::sync_cubeface(), and blender::eevee::ShadowTileMap::sync_orthographic().

◆ clip_data_index

int blender::eevee::ShadowTileMapData::clip_data_index

◆ clip_far

float blender::eevee::ShadowTileMapData::clip_far

◆ clip_near

float blender::eevee::ShadowTileMapData::clip_near

Near and far clip distances for punctual.

Definition at line 1339 of file eevee_shader_shared.hh.

Referenced by blender::eevee::ShadowTileMap::sync_cubeface(), and blender::draw::test_eevee_shadow_finalize().

◆ corners

float4 blender::eevee::ShadowTileMapData::corners[4]

Punctual : Corners of the frustum. (vec3 padded to vec4)

Definition at line 1320 of file eevee_shader_shared.hh.

◆ effective_lod_min

int blender::eevee::ShadowTileMapData::effective_lod_min

Effective minimum resolution after update throttle.

Definition at line 1336 of file eevee_shader_shared.hh.

◆ grid_offset

int2 blender::eevee::ShadowTileMapData::grid_offset

Integer offset of the center of the 16x16 tiles from the origin of the tile space.

Definition at line 1322 of file eevee_shader_shared.hh.

Referenced by blender::eevee::ShadowTileMap::ShadowTileMap(), blender::eevee::ShadowTileMap::sync_cubeface(), and blender::eevee::ShadowTileMap::sync_orthographic().

◆ grid_shift

int2 blender::eevee::ShadowTileMapData::grid_shift

◆ half_size

float blender::eevee::ShadowTileMapData::half_size

Half of the tilemap size in world units. Used to compute window matrix.

Definition at line 1342 of file eevee_shader_shared.hh.

Referenced by blender::eevee::ShadowTileMap::sync_cubeface(), blender::eevee::ShadowTileMap::sync_orthographic(), and blender::draw::test_eevee_shadow_finalize().

◆ is_dirty

bool32_t blender::eevee::ShadowTileMapData::is_dirty

Entire tilemap (all tiles) needs to be tagged as dirty.

Definition at line 1334 of file eevee_shader_shared.hh.

Referenced by blender::eevee::ShadowTileMap::set_dirty(), and blender::eevee::ShadowTileMap::set_updated().

◆ light_type

eLightType blender::eevee::ShadowTileMapData::light_type

◆ projection_type

◆ shadow_set_membership

uint2 blender::eevee::ShadowTileMapData::shadow_set_membership

Shadow set bitmask of the light using this tilemap.

Definition at line 1346 of file eevee_shader_shared.hh.

Referenced by blender::eevee::ShadowTileMap::sync_cubeface(), and blender::eevee::ShadowTileMap::sync_orthographic().

◆ tiles_index

◆ viewmat

◆ winmat

float4x4 blender::eevee::ShadowTileMapData::winmat

Precomputed matrix, not used for rendering but for tagging.

Definition at line 1318 of file eevee_shader_shared.hh.

Referenced by blender::eevee::ShadowTileMap::debug_draw(), blender::eevee::ShadowTileMap::sync_cubeface(), and blender::eevee::ShadowTileMap::sync_orthographic().


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