From: Mikko Rasa Date: Sat, 30 Oct 2021 20:02:51 +0000 (+0300) Subject: Add missing implementation of RenderMethod::set_image_based_lighting X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=71671ec34b63e3e43fbddb3a49e21b89ba5bbf88 Add missing implementation of RenderMethod::set_image_based_lighting --- 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)