From 71671ec34b63e3e43fbddb3a49e21b89ba5bbf88 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 30 Oct 2021 23:02:51 +0300 Subject: [PATCH] Add missing implementation of RenderMethod::set_image_based_lighting --- source/materials/rendermethod.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/materials/rendermethod.cpp b/source/materials/rendermethod.cpp index 2b4738ef..0302a993 100644 --- a/source/materials/rendermethod.cpp +++ b/source/materials/rendermethod.cpp @@ -101,6 +101,12 @@ void RenderMethod::set_receive_shadows(bool rs) maybe_create_material_shader(); } +void RenderMethod::set_image_based_lighting(bool ibl) +{ + image_based_lighting = ibl; + maybe_create_material_shader(); +} + void RenderMethod::apply(Renderer &renderer) const { for(const TextureSlot &t: textures) -- 2.43.0