Kohi Game Engine
|
#include <material_system.h>
Holds internal state for per-frame data (i.e across all standard materials);
f32 cascade_splits[MATERIAL_MAX_SHADOW_CASCADES] |
f32 delta_time |
mat4 directional_light_spaces[MATERIAL_MAX_SHADOW_CASCADES] |
f32 game_time |
ktexture irradiance_cubemap_textures[MATERIAL_MAX_SHADOW_CASCADES] |
mat4 projection |
u32 render_mode |
f32 shadow_bias |
ktexture shadow_map_texture |
vec4 view_positions[MATERIAL_MAX_VIEWS] |
mat4 views[MATERIAL_MAX_VIEWS] |