From d5d6db275a87c77fb6ac594ac3dc555fd2b903ea Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 13 Jul 2014 16:56:11 +0300 Subject: [PATCH] Set lighting for the sky pass too Otherwise whatever parameters were there before will get used, resulting in incorrect rendering with multiple views. --- source/3d/view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/3d/view.cpp b/source/3d/view.cpp index 69049e0..8c35245 100644 --- a/source/3d/view.cpp +++ b/source/3d/view.cpp @@ -25,6 +25,7 @@ View3D::View3D(Layout3D &l, unsigned w, unsigned h): pipeline.add_renderable_for_pass(layout.get_scene(), "translucent"); GL::Pipeline::Pass *pass = &pipeline.add_pass("sky"); + pass->set_lighting(&layout.get_lighting()); pass = &pipeline.add_pass(0); pass->set_lighting(&layout.get_lighting()); -- 2.43.0