mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:29:01 +02:00
Ryan likes the eyelids starting at forty degrees.
This commit is contained in:
parent
6a5fb4f535
commit
2ffd151a1f
1 changed files with 2 additions and 2 deletions
|
@ -627,7 +627,7 @@ void Head::renderEyeBalls() {
|
||||||
glm::vec3 rotationAxis = glm::axis(orientation);
|
glm::vec3 rotationAxis = glm::axis(orientation);
|
||||||
glRotatef(glm::angle(orientation), rotationAxis.x, rotationAxis.y, rotationAxis.z);
|
glRotatef(glm::angle(orientation), rotationAxis.x, rotationAxis.y, rotationAxis.z);
|
||||||
glScalef(EYELID_RADIUS, EYELID_RADIUS, EYELID_RADIUS);
|
glScalef(EYELID_RADIUS, EYELID_RADIUS, EYELID_RADIUS);
|
||||||
glRotatef(-90 * _leftEyeBlink, 1, 0, 0);
|
glRotatef(-40 - 50 * _leftEyeBlink, 1, 0, 0);
|
||||||
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
||||||
glRotatef(180 * _leftEyeBlink, 1, 0, 0);
|
glRotatef(180 * _leftEyeBlink, 1, 0, 0);
|
||||||
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
||||||
|
@ -640,7 +640,7 @@ void Head::renderEyeBalls() {
|
||||||
glm::vec3 rotationAxis = glm::axis(orientation);
|
glm::vec3 rotationAxis = glm::axis(orientation);
|
||||||
glRotatef(glm::angle(orientation), rotationAxis.x, rotationAxis.y, rotationAxis.z);
|
glRotatef(glm::angle(orientation), rotationAxis.x, rotationAxis.y, rotationAxis.z);
|
||||||
glScalef(EYELID_RADIUS, EYELID_RADIUS, EYELID_RADIUS);
|
glScalef(EYELID_RADIUS, EYELID_RADIUS, EYELID_RADIUS);
|
||||||
glRotatef(-90 * _rightEyeBlink, 1, 0, 0);
|
glRotatef(-40 - 50 * _rightEyeBlink, 1, 0, 0);
|
||||||
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
||||||
glRotatef(180 * _rightEyeBlink, 1, 0, 0);
|
glRotatef(180 * _rightEyeBlink, 1, 0, 0);
|
||||||
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
Application::getInstance()->getGeometryCache()->renderHemisphere(15, 10);
|
||||||
|
|
Loading…
Reference in a new issue