From: Mikko Rasa Date: Wed, 6 Apr 2011 09:17:44 +0000 (+0000) Subject: Overlay should be rendered with blending enabled X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7d567753bb7e7a6952bab98a2896fd01c7dfd319;p=r2c2.git Overlay should be rendered with blending enabled --- diff --git a/source/engineer/engineer.cpp b/source/engineer/engineer.cpp index 8aea6f6..e243651 100644 --- a/source/engineer/engineer.cpp +++ b/source/engineer/engineer.cpp @@ -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