diff --git a/include/limitless/instances/decal_instance.hpp b/include/limitless/instances/decal_instance.hpp index 7fc0b770..b4731a99 100644 --- a/include/limitless/instances/decal_instance.hpp +++ b/include/limitless/instances/decal_instance.hpp @@ -17,6 +17,8 @@ namespace Limitless { void updateBoundingBox() noexcept override; std::unique_ptr clone() noexcept override; + void setMaterial(std::shared_ptr new_material); + void draw(Context& ctx, const Assets& assets, ShaderType shader_type, ms::Blending blending, const UniformSetter& uniform_set) override; }; } \ No newline at end of file diff --git a/src/limitless/instances/decal_instance.cpp b/src/limitless/instances/decal_instance.cpp index 84b701e0..fcb259a7 100644 --- a/src/limitless/instances/decal_instance.cpp +++ b/src/limitless/instances/decal_instance.cpp @@ -39,6 +39,10 @@ void DecalInstance::draw(Context &ctx, const Assets &assets, ShaderType shader_t model->getMeshes()[0]->draw(); } +void DecalInstance::setMaterial(std::shared_ptr new_material) { + material = std::make_shared(*new_material); +} + void DecalInstance::updateBoundingBox() noexcept { }