]> git.lizzy.rs Git - shadowclad.git/commitdiff
Only render axis indicator on the positive side of that axis
authoroutfrost <kotlet.bahn@gmail.com>
Wed, 10 Oct 2018 21:49:21 +0000 (23:49 +0200)
committeroutfrost <kotlet.bahn@gmail.com>
Wed, 10 Oct 2018 21:55:49 +0000 (23:55 +0200)
render.c

index 5a3483ca8dde27ef4be7bc6a2365c1d7d8218f85..425fc35517acd5178604e4a691e0ba4469b51d9d 100644 (file)
--- a/render.c
+++ b/render.c
@@ -16,11 +16,11 @@ void render_scene() {
 }
 
 void draw_axes() {
-       point3f x_axis_start = { -AXIS_RADIUS, 0.0f, 0.0f };
+       point3f x_axis_start = { 0.0f, 0.0f, 0.0f };
        point3f x_axis_end = { AXIS_RADIUS, 0.0f, 0.0f };
-       point3f y_axis_start = { 0.0f, -AXIS_RADIUS, 0.0f };
+       point3f y_axis_start = { 0.0f, 0.0f, 0.0f };
        point3f y_axis_end = { 0.0f, AXIS_RADIUS, 0.0f };
-       point3f z_axis_start = { 0.0f, 0.0f, -AXIS_RADIUS };
+       point3f z_axis_start = { 0.0f, 0.0f, 0.0f };
        point3f z_axis_end = { 0.0f, 0.0f, AXIS_RADIUS };
        
        glColor3f(1.0f, 0.0f, 0.0f);