]> git.tdb.fi Git - r2c2.git/commitdiff
Overlay should be rendered with blending enabled
authorMikko Rasa <tdb@tdb.fi>
Wed, 6 Apr 2011 09:17:44 +0000 (09:17 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 6 Apr 2011 09:17:44 +0000 (09:17 +0000)
source/engineer/engineer.cpp

index 8aea6f68ace07ad70360cd27bdb3fd874ccd913a..e24365150fd25ec159c46b20f78b53ea0de91dbe 100644 (file)
@@ -100,7 +100,7 @@ Engineer::Engineer(int argc, char **argv):
        pipeline.set_camera(&camera);
        pipeline.add_renderable_for_pass(layout_3d.get_scene(), 0);
        pipeline.add_renderable_for_pass(layout_3d.get_path_scene(), "unlit");
-       pipeline.add_renderable_for_pass(*overlay, "unlit");
+       pipeline.add_renderable_for_pass(*overlay, "overlay");
 
        light.set_position(GL::Vector4(0, -0.259, 0.966, 0));
        light.set_diffuse(GL::Color(0.9));
@@ -114,6 +114,9 @@ Engineer::Engineer(int argc, char **argv):
        pass = &pipeline.add_pass("unlit");
        pass->depth_test = &GL::DepthTest::lequal();
 
+       pass = &pipeline.add_pass("overlay");
+       pass->blend = &GL::Blend::alpha();
+
        view_all();
 
        // Catch various signals so we can stop the trains in case we get terminated