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

#include <scene_buffer.hpp>

Inheritance diagram for mage::rendering::SpotLightBuffer:
mage::rendering::PointLightBuffer mage::rendering::ShadowMappedSpotLightBuffer

Public Attributes

RGB m_I
 
F32 m_cos_umbra = {}
 
Direction3 m_neg_d_world
 
F32 m_cos_inv_range = {}
 
- Public Attributes inherited from mage::rendering::PointLightBuffer
Point3 m_p_world
 
F32 m_inv_sqr_range = {}
 

Detailed Description

A struct of spotlight buffers used by shaders.

Member Data Documentation

◆ m_cos_inv_range

F32 mage::rendering::SpotLightBuffer::m_cos_inv_range = {}

The inverse of the cosine range of the spotlight of this spotlight buffer.

◆ m_cos_umbra

F32 mage::rendering::SpotLightBuffer::m_cos_umbra = {}

The cosine of the umbra angle of the spotlight of this spotlight buffer.

◆ m_I

RGB mage::rendering::SpotLightBuffer::m_I

The radiant intensity in watts per steradians of the spotlight of this spotlight buffer.

◆ m_neg_d_world

Direction3 mage::rendering::SpotLightBuffer::m_neg_d_world

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