Can zoom out a lot more.

This commit is contained in:
Themaister 2013-05-13 00:57:06 +02:00
parent e4e886955f
commit abaf8f5d93
2 changed files with 3 additions and 1 deletions

View File

@ -182,7 +182,7 @@ static void handle_input()
analog_ry += 30000;
model_scale *= 1.0f - analog_ry * 0.000001f;
model_scale = clamp(model_scale, 0.1f, 100.0f);
model_scale = clamp(model_scale, 0.0001f, 100.0f);
model_rotate_x += analog_y * 0.0001f;
model_rotate_x = clamp(model_rotate_x, -80.0f, 80.0f);
model_rotate_y += analog_x * 0.00015f;

View File

@ -91,6 +91,8 @@ namespace GL
if (material.ambient_map)
material.ambient_map->bind(1);
else if (material.diffuse_map)
material.diffuse_map->bind(1);
else if (blank)
blank->bind(1);