mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Basic model shading (#9374)
This commit is contained in:
parent
478e753298
commit
6958071f49
9 changed files with 338 additions and 41 deletions
|
@ -188,7 +188,7 @@ public:
|
|||
delete setter;
|
||||
}
|
||||
|
||||
virtual void OnSetConstants(video::IMaterialRendererServices *services, s32 userData)
|
||||
virtual void OnSetConstants(video::IMaterialRendererServices *services, s32 userData) override
|
||||
{
|
||||
video::IVideoDriver *driver = services->getVideoDriver();
|
||||
sanity_check(driver != NULL);
|
||||
|
@ -198,6 +198,12 @@ public:
|
|||
for (IShaderConstantSetter *setter : m_setters)
|
||||
setter->onSetConstants(services, is_highlevel);
|
||||
}
|
||||
|
||||
virtual void OnSetMaterial(const video::SMaterial& material) override
|
||||
{
|
||||
for (IShaderConstantSetter *setter : m_setters)
|
||||
setter->onSetMaterial(material);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue