From: Mikko Rasa Date: Sun, 13 Jul 2014 13:56:11 +0000 (+0300) Subject: Set lighting for the sky pass too X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d5d6db275a87c77fb6ac594ac3dc555fd2b903ea;p=r2c2.git Set lighting for the sky pass too Otherwise whatever parameters were there before will get used, resulting in incorrect rendering with multiple views. --- 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());