From 20533eea4b67f6f1799afdafa1c0641fd4fb2f9f Mon Sep 17 00:00:00 2001 From: hasufell Date: Sat, 17 May 2014 03:32:14 +0200 Subject: [PATCH] Make normals a bit smaller and better to control --- src/gl_draw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gl_draw.c b/src/gl_draw.c index 27758f2..80d1055 100644 --- a/src/gl_draw.c +++ b/src/gl_draw.c @@ -81,7 +81,7 @@ static float calculateFPS(); static void draw_normals(HE_obj const * const obj, float const scale_inc) { - static float normals_scale_factor = 0.3f; + static float normals_scale_factor = 0.1f; static float line_width = 2; vector vec; @@ -572,11 +572,11 @@ void keyboard(unsigned char key, int x, int y) glutPostRedisplay(); break; case 'k': - draw_normals(obj, 0.02f); + draw_normals(obj, 0.01f); glutPostRedisplay(); break; case 'l': - draw_normals(obj, -0.02f); + draw_normals(obj, -0.01f); glutPostRedisplay(); break; case 'w':