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

#include <scene_buffer.hpp>

Public Attributes

XMMATRIX m_object_to_world = {}
 
XMMATRIX m_normal_to_world = {}
 
XMMATRIX m_texture_transform = {}
 
RGBA m_base_color
 
F32 m_roughness = 0.0f
 
F32 m_metalness = 0.0f
 
U32x2 m_padding
 

Detailed Description

A struct of model buffers.

Member Data Documentation

◆ m_base_color

RGBA mage::rendering::ModelBuffer::m_base_color

The (linear) base color of the material of this model buffer.

◆ m_metalness

F32 mage::rendering::ModelBuffer::m_metalness = 0.0f

The (linear) metalness of the material of this model buffer.

◆ m_normal_to_world

XMMATRIX mage::rendering::ModelBuffer::m_normal_to_world = {}

The (column-major packed, row-major matrix) object-to-world inverse transpose matrix (normal-to-world matrix) of this model buffer.

◆ m_object_to_world

XMMATRIX mage::rendering::ModelBuffer::m_object_to_world = {}

The (column-major packed, row-major matrix) object-to-world matrix of this model buffer.

◆ m_padding

U32x2 mage::rendering::ModelBuffer::m_padding

The padding of this world buffer.

◆ m_roughness

F32 mage::rendering::ModelBuffer::m_roughness = 0.0f

The (linear) roughness of the material of this model buffer.

◆ m_texture_transform

XMMATRIX mage::rendering::ModelBuffer::m_texture_transform = {}

The (column-major packed, row-major matrix) texture transform matrix of this model buffer.