mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:37:31 +02:00
Translate half cylinder backing rather than rotate a 2nd one.
This commit is contained in:
parent
8cadca4ce7
commit
38651a6a40
1 changed files with 2 additions and 4 deletions
|
@ -262,12 +262,10 @@ bool Face::render(float alpha) {
|
||||||
zScale = xScale * 0.3f;
|
zScale = xScale * 0.3f;
|
||||||
|
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glScalef(0.5f * xScale, 0.5f * xScale / aspect, zScale);
|
glTranslatef(0.0f, -0.2f, 0.0f);
|
||||||
|
glScalef(0.5f * xScale, xScale / aspect, zScale);
|
||||||
glColor4f(1.0f, 1.0f, 1.0f, alpha);
|
glColor4f(1.0f, 1.0f, 1.0f, alpha);
|
||||||
Application::getInstance()->getGeometryCache()->renderHalfCylinder(25, 20);
|
Application::getInstance()->getGeometryCache()->renderHalfCylinder(25, 20);
|
||||||
glRotatef(180, 0, 1, 0);
|
|
||||||
glRotatef(180, 1, 0, 0);
|
|
||||||
Application::getInstance()->getGeometryCache()->renderHalfCylinder(25, 20);
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
} else {
|
} else {
|
||||||
aspect = _aspectRatio;
|
aspect = _aspectRatio;
|
||||||
|
|
Loading…
Reference in a new issue