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

Public Member Functions

 NodeShaderConstantSetter ()=default
 
 ~NodeShaderConstantSetter ()=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

◆ NodeShaderConstantSetter()

NodeShaderConstantSetter::NodeShaderConstantSetter ( )
default

◆ ~NodeShaderConstantSetter()

NodeShaderConstantSetter::~NodeShaderConstantSetter ( )
default

Member Function Documentation

◆ onGenerate()

void NodeShaderConstantSetter::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::getBool(), Settings::getFloat(), PROVIDE, TILE_MATERIAL_ALPHA, TILE_MATERIAL_BASIC, TILE_MATERIAL_LIQUID_OPAQUE, TILE_MATERIAL_LIQUID_TRANSPARENT, TILE_MATERIAL_OPAQUE, TILE_MATERIAL_PLAIN, TILE_MATERIAL_PLAIN_ALPHA, TILE_MATERIAL_WAVING_LEAVES, TILE_MATERIAL_WAVING_LIQUID_BASIC, TILE_MATERIAL_WAVING_LIQUID_OPAQUE, TILE_MATERIAL_WAVING_LIQUID_TRANSPARENT, and TILE_MATERIAL_WAVING_PLANTS.

+ Here is the call graph for this function:

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