Make normals a bit smaller and better to control
This commit is contained in:
parent
cb54d54e2c
commit
20533eea4b
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user