Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/draw.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 299e59e..2dbdc6f 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -164,18 +164,26 @@ void draw_entity_controlable(core::EntityControlable *entity)
// draw the shield
gl::color(math::Color(0.0f, 1.0f ,0.0f , 0.5f));
-
+
gl::begin(gl::LineLoop);
+ gl::normal(0, -0.5, -0.5);
gl::vertex(v0);
+ gl::normal(0, 0.5, -0.5);
gl::vertex(v1);
+ gl::normal(0, 0.5, 0.5);
gl::vertex(v2);
+ gl::normal(0, -0.5, 0.5);
gl::vertex(v3);
gl::end();
gl::begin(gl::LineLoop);
+ gl::normal(0, -0.5, -0.5);
gl::vertex(v4);
+ gl::normal(0, 0.5, -0.5);
gl::vertex(v5);
+ gl::normal(0, 0.5, 0.5);
gl::vertex(v6);
+ gl::normal(0, -0.5, 0.5);
gl::vertex(v7);
gl::end();