Increased mininum camera distance because the marble got scaled up.

This commit is contained in:
Faerbit 2015-01-20 08:45:52 +01:00
parent 9598a86ffe
commit 812321edec

View File

@ -48,8 +48,8 @@ void Camera::updateRotation(glm::vec2 rotation) {
} }
void Camera:: updateDistance(float distance) { void Camera:: updateDistance(float distance) {
if (this->distance + distance <= 1.0f) { if (this->distance + distance <= 2.5f) {
this->distance = 1.0f; this->distance = 2.5f;
} }
else if (this->distance + distance >= 30.0f) { else if (this->distance + distance >= 30.0f) {
this->distance = 30.f; this->distance = 30.f;