layout(l),
width(w),
height(h),
- pipeline(w, h)
+ pipeline(w, h),
+ sky(layout.get_catalogue())
{
pipeline.set_camera(&camera);
+ pipeline.add_renderable(sky);
pipeline.add_renderable_for_pass(layout.get_scene(), 0);
pipeline.add_renderable_for_pass(layout.get_scene(), "translucent");
- GL::Pipeline::Pass *pass = &pipeline.add_pass(0);
+ GL::Pipeline::Pass *pass = &pipeline.add_pass("sky");
+
+ pass = &pipeline.add_pass(0);
pass->set_lighting(&layout.get_lighting());
pass->set_depth_test(&GL::DepthTest::lequal());