From 4f1e7863924ac1d1a0301dffde483af9163d7fc4 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Mon, 15 Jul 2013 16:12:23 -0700 Subject: [PATCH] Fix for iris rendering; was broken by scale change. --- interface/src/Head.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/Head.cpp b/interface/src/Head.cpp index cc6f729325..131e0968cc 100644 --- a/interface/src/Head.cpp +++ b/interface/src/Head.cpp @@ -599,7 +599,7 @@ void Head::renderEyeBalls() { _irisProgram->setUniform(_eyePositionLocation, (glm::inverse(rotation) * (Application::getInstance()->getCamera()->getPosition() - _leftEyePosition) + glm::vec3(0.0f, 0.0f, _scale * IRIS_PROTRUSION)) * glm::vec3(1.0f / (_scale * IRIS_RADIUS * 2.0f), - 1.0f / (_scale * IRIS_RADIUS * 2.0f), 1.0f / _scale * IRIS_RADIUS)); + 1.0f / (_scale * IRIS_RADIUS * 2.0f), 1.0f / (_scale * IRIS_RADIUS))); glutSolidSphere(0.5f, 15, 15); } @@ -623,7 +623,7 @@ void Head::renderEyeBalls() { _irisProgram->setUniform(_eyePositionLocation, (glm::inverse(rotation) * (Application::getInstance()->getCamera()->getPosition() - _rightEyePosition) + glm::vec3(0.0f, 0.0f, _scale * IRIS_PROTRUSION)) * glm::vec3(1.0f / (_scale * IRIS_RADIUS * 2.0f), - 1.0f / (_scale * IRIS_RADIUS * 2.0f), 1.0f / _scale * IRIS_RADIUS)); + 1.0f / (_scale * IRIS_RADIUS * 2.0f), 1.0f / (_scale * IRIS_RADIUS))); glutSolidSphere(0.5f, 15, 15); }