]> git.tdb.fi Git - libs/gl.git/commitdiff
Add missing implementation of RenderMethod::set_image_based_lighting
authorMikko Rasa <tdb@tdb.fi>
Sat, 30 Oct 2021 20:02:51 +0000 (23:02 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 30 Oct 2021 22:28:13 +0000 (01:28 +0300)
source/materials/rendermethod.cpp

index 2b4738ef46e0b2dd2a21f0fb38f463072f4368e9..0302a9934e75ac3c3d143155a5746c522139ff13 100644 (file)
@@ -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)