Make normals a bit smaller and better to control

This commit is contained in:
hasufell 2014-05-17 03:32:14 +02:00
parent cb54d54e2c
commit 20533eea4b
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -81,7 +81,7 @@ static float calculateFPS();
static void draw_normals(HE_obj const * const obj, static void draw_normals(HE_obj const * const obj,
float const scale_inc) float const scale_inc)
{ {
static float normals_scale_factor = 0.3f; static float normals_scale_factor = 0.1f;
static float line_width = 2; static float line_width = 2;
vector vec; vector vec;
@ -572,11 +572,11 @@ void keyboard(unsigned char key, int x, int y)
glutPostRedisplay(); glutPostRedisplay();
break; break;
case 'k': case 'k':
draw_normals(obj, 0.02f); draw_normals(obj, 0.01f);
glutPostRedisplay(); glutPostRedisplay();
break; break;
case 'l': case 'l':
draw_normals(obj, -0.02f); draw_normals(obj, -0.01f);
glutPostRedisplay(); glutPostRedisplay();
break; break;
case 'w': case 'w':