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

#include <scene_buffer.hpp>

Public Attributes

U32 m_nb_directional_lights = {}
 
U32 m_nb_omni_lights = {}
 
U32 m_nb_spot_lights = {}
 
U32 m_padding0 = {}
 
U32 m_nb_sm_directional_lights = {}
 
U32 m_nb_sm_omni_lights = {}
 
U32 m_nb_sm_spot_lights = {}
 
U32 m_padding1 = {}
 
RGB m_La
 
F32 m_padding2 = {}
 

Detailed Description

A struct of light buffers used by shaders.

Member Data Documentation

◆ m_La

RGB mage::rendering::LightBuffer::m_La

The ambient radiance in watts per square meter per steradians of this light buffer.

◆ m_nb_directional_lights

U32 mage::rendering::LightBuffer::m_nb_directional_lights = {}

The number of directional lights of this light buffer.

◆ m_nb_omni_lights

U32 mage::rendering::LightBuffer::m_nb_omni_lights = {}

The number of omni lights of this light buffer.

◆ m_nb_sm_directional_lights

U32 mage::rendering::LightBuffer::m_nb_sm_directional_lights = {}

The number of shadow mapped directional lights of this light buffer.

◆ m_nb_sm_omni_lights

U32 mage::rendering::LightBuffer::m_nb_sm_omni_lights = {}

The number of shadow mapped omni lights of this light buffer.

◆ m_nb_sm_spot_lights

U32 mage::rendering::LightBuffer::m_nb_sm_spot_lights = {}

The number of shadow mapped spotlights of this light buffer.

◆ m_nb_spot_lights

U32 mage::rendering::LightBuffer::m_nb_spot_lights = {}

The number of spotlights of this light buffer.

◆ m_padding0

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

The padding of this light buffer.

◆ m_padding1

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

The padding of this light buffer.

◆ m_padding2

F32 mage::rendering::LightBuffer::m_padding2 = {}

The padding of this light buffer.