MAGE  v0.171.0
Matthias Advanced Game Engine
mage::rendering::DirectionalLightBuffer Struct Reference

#include <scene_buffer.hpp>

Public Attributes

RGB m_E_ortho
 
U32 m_padding0 = {}
 
Direction3 m_neg_d_world
 
U32 m_padding1 = {}
 
XMMATRIX m_world_to_projection = {}
 

Detailed Description

A struct of directional light buffers used by shaders.

Member Data Documentation

◆ m_E_ortho

RGB mage::rendering::DirectionalLightBuffer::m_E_ortho

The (orthogonal) irradiance of the directional light of this directional light buffer.

◆ m_neg_d_world

Direction3 mage::rendering::DirectionalLightBuffer::m_neg_d_world

The (normalized) negated direction of the directional light expressed in world space of this directional light buffer.

◆ m_padding0

U32 mage::rendering::DirectionalLightBuffer::m_padding0 = {}

The padding of this directional light buffer.

◆ m_padding1

U32 mage::rendering::DirectionalLightBuffer::m_padding1 = {}

The padding of this directional light buffer.

◆ m_world_to_projection

XMMATRIX mage::rendering::DirectionalLightBuffer::m_world_to_projection = {}

The (column-major packed, row-major matrix) world-to-projection matrix of this directional light buffer.