1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-26 05:15:27 +01:00

Rename IShaderConstantSetter

This commit is contained in:
sfan5
2025-04-17 22:15:14 +02:00
parent 4c4e296274
commit b2c2a6ff47
9 changed files with 55 additions and 55 deletions

View File

@@ -67,14 +67,14 @@ void FpsControl::limit(IrrlichtDevice *device, f32 *dtime)
last_time = time;
}
class FogShaderConstantSetter : public IShaderConstantSetter
class FogShaderUniformSetter : public IShaderUniformSetter
{
CachedPixelShaderSetting<float, 4> m_fog_color{"fogColor"};
CachedPixelShaderSetting<float> m_fog_distance{"fogDistance"};
CachedPixelShaderSetting<float> m_fog_shading_parameter{"fogShadingParameter"};
public:
void onSetConstants(video::IMaterialRendererServices *services) override
void onSetUniforms(video::IMaterialRendererServices *services) override
{
auto *driver = services->getVideoDriver();
assert(driver);
@@ -101,9 +101,9 @@ public:
}
};
IShaderConstantSetter *FogShaderConstantSetterFactory::create()
IShaderUniformSetter *FogShaderUniformSetterFactory::create()
{
return new FogShaderConstantSetter();
return new FogShaderUniformSetter();
}
/* Other helpers */