Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
BlamShadowCasterState Struct Reference

Runtime state for a single shadow-casting light. More...

#include <types.h>

+ Collaboration diagram for BlamShadowCasterState:

Public Member Functions

 BlamShadowCasterState ()
 

Public Attributes

BlamWorldObject_TagLightlight_object
 
BlamShadowCasterType caster_type
 
bgfx::FrameBufferHandle shadow_framebuffers [6]
 
bgfx::TextureHandle shadow_textures [BLAM_SHADOW_CASCADE_COUNT]
 
bgfx::TextureHandle shadow_cubemap
 
bgfx::TextureHandle shadow_cubemap_depth
 
float light_matrices [6][16]
 
float cascade_splits [BLAM_SHADOW_CASCADE_COUNT]
 
float point_far_plane
 
int slot_index_2d
 
int slot_index_cube
 
int last_update_frame
 

Detailed Description

Runtime state for a single shadow-casting light.

Held in a sidecar structure rather than on the tag class so that tag data remains purely data-driven.

Constructor & Destructor Documentation

◆ BlamShadowCasterState()

BlamShadowCasterState::BlamShadowCasterState ( )

Member Data Documentation

◆ cascade_splits

float BlamShadowCasterState::cascade_splits[BLAM_SHADOW_CASCADE_COUNT]

◆ caster_type

BlamShadowCasterType BlamShadowCasterState::caster_type

◆ last_update_frame

int BlamShadowCasterState::last_update_frame

◆ light_matrices

float BlamShadowCasterState::light_matrices[6][16]

◆ light_object

BlamWorldObject_TagLight* BlamShadowCasterState::light_object

◆ point_far_plane

float BlamShadowCasterState::point_far_plane

◆ shadow_cubemap

bgfx::TextureHandle BlamShadowCasterState::shadow_cubemap

◆ shadow_cubemap_depth

bgfx::TextureHandle BlamShadowCasterState::shadow_cubemap_depth

◆ shadow_framebuffers

bgfx::FrameBufferHandle BlamShadowCasterState::shadow_framebuffers[6]

◆ shadow_textures

bgfx::TextureHandle BlamShadowCasterState::shadow_textures[BLAM_SHADOW_CASCADE_COUNT]

◆ slot_index_2d

int BlamShadowCasterState::slot_index_2d

◆ slot_index_cube

int BlamShadowCasterState::slot_index_cube

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