]> git.tdb.fi Git - r2c2.git/commitdiff
Set lighting for the sky pass too
authorMikko Rasa <tdb@tdb.fi>
Sun, 13 Jul 2014 13:56:11 +0000 (16:56 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 13 Jul 2014 13:56:11 +0000 (16:56 +0300)
Otherwise whatever parameters were there before will get used, resulting
in incorrect rendering with multiple views.

source/3d/view.cpp

index 69049e0b3e8e2232277ad4d0ee0f93e374424075..8c35245b4d97dd1b6d6c27147fc9494d6827ebd8 100644 (file)
@@ -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());