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

Public Member Functions

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

Private Attributes

CachedPixelShaderSetting< float, 4 > m_fog_color {"fogColor"}
 
CachedPixelShaderSetting< float > m_fog_distance {"fogDistance"}
 
CachedPixelShaderSetting< float > m_fog_shading_parameter {"fogShadingParameter"}
 

Member Function Documentation

◆ onSetConstants()

void FogShaderConstantSetter::onSetConstants ( video::IMaterialRendererServices * services)
inlineoverridevirtual

Implements IShaderConstantSetter.

References m_fog_color, m_fog_distance, m_fog_shading_parameter, and CachedShaderSetting< T, count, cache >::set().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_fog_color

CachedPixelShaderSetting<float, 4> FogShaderConstantSetter::m_fog_color {"fogColor"}
private

Referenced by onSetConstants().

◆ m_fog_distance

CachedPixelShaderSetting<float> FogShaderConstantSetter::m_fog_distance {"fogDistance"}
private

Referenced by onSetConstants().

◆ m_fog_shading_parameter

CachedPixelShaderSetting<float> FogShaderConstantSetter::m_fog_shading_parameter {"fogShadingParameter"}
private

Referenced by onSetConstants().


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