Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
MainShaderConstantSetter Class Reference
+ Inheritance diagram for MainShaderConstantSetter:
+ Collaboration diagram for MainShaderConstantSetter:

Public Member Functions

 ~MainShaderConstantSetter ()=default
 
virtual void onSetMaterial (const video::SMaterial &material) override
 
virtual void onSetConstants (video::IMaterialRendererServices *services) override
 
- Public Member Functions inherited from IShaderConstantSetter
virtual ~IShaderConstantSetter ()=default
 

Private Attributes

CachedVertexShaderSetting< f32, 16 > m_world_view_proj {"mWorldViewProj"}
 
CachedVertexShaderSetting< f32, 16 > m_world {"mWorld"}
 
CachedVertexShaderSetting< float, 16 > m_world_view {"mWorldView"}
 
CachedVertexShaderSetting< float, 16 > m_texture {"mTexture"}
 
video::SColor m_material_color
 
CachedPixelShaderSetting< float, 4 > m_material_color_setting {"materialColor"}
 

Constructor & Destructor Documentation

◆ ~MainShaderConstantSetter()

MainShaderConstantSetter::~MainShaderConstantSetter ( )
default

Member Function Documentation

◆ onSetConstants()

virtual void MainShaderConstantSetter::onSetConstants ( video::IMaterialRendererServices * services)
inlineoverridevirtual

Implements IShaderConstantSetter.

References m_material_color, m_material_color_setting, m_texture, m_world, m_world_view, m_world_view_proj, and CachedShaderSetting< T, count, cache >::set().

+ Here is the call graph for this function:

◆ onSetMaterial()

virtual void MainShaderConstantSetter::onSetMaterial ( const video::SMaterial & material)
inlineoverridevirtual

Reimplemented from IShaderConstantSetter.

References m_material_color.

Member Data Documentation

◆ m_material_color

video::SColor MainShaderConstantSetter::m_material_color
private

Referenced by onSetConstants(), and onSetMaterial().

◆ m_material_color_setting

CachedPixelShaderSetting<float, 4> MainShaderConstantSetter::m_material_color_setting {"materialColor"}
private

Referenced by onSetConstants().

◆ m_texture

CachedVertexShaderSetting<float, 16> MainShaderConstantSetter::m_texture {"mTexture"}
private

Referenced by onSetConstants().

◆ m_world

CachedVertexShaderSetting<f32, 16> MainShaderConstantSetter::m_world {"mWorld"}
private

Referenced by onSetConstants().

◆ m_world_view

CachedVertexShaderSetting<float, 16> MainShaderConstantSetter::m_world_view {"mWorldView"}
private

Referenced by onSetConstants().

◆ m_world_view_proj

CachedVertexShaderSetting<f32, 16> MainShaderConstantSetter::m_world_view_proj {"mWorldViewProj"}
private

Referenced by onSetConstants().


The documentation for this class was generated from the following file: