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

Public Member Functions

 MainShaderConstantSetter ()=default
 
 ~MainShaderConstantSetter ()=default
 
void onGenerate (const std::string &name, ShaderConstants &constants) override
 Called when the final shader source is being generated.
 
- Public Member Functions inherited from IShaderConstantSetter
virtual ~IShaderConstantSetter ()=default
 

Constructor & Destructor Documentation

◆ MainShaderConstantSetter()

MainShaderConstantSetter::MainShaderConstantSetter ( )
default

◆ ~MainShaderConstantSetter()

MainShaderConstantSetter::~MainShaderConstantSetter ( )
default

Member Function Documentation

◆ onGenerate()

void MainShaderConstantSetter::onGenerate ( const std::string & name,
ShaderConstants & constants )
inlineoverridevirtual

Called when the final shader source is being generated.

Parameters
namename of the shader
constantscurrent set of constants, free to modify

Implements IShaderConstantSetter.

References g_settings, Settings::get(), Settings::getBool(), Settings::getFloat(), Settings::getS32(), and Settings::getU16().

+ Here is the call graph for this function:

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