Skip to content

Commit

Permalink
fix mirrored texture for pipecylinder
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and adeas31 committed Feb 27, 2017
1 parent 9b521e4 commit 2345a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OMEdit/OMEditGUI/Animation/ExtraShapes.cpp
Expand Up @@ -161,10 +161,10 @@ Pipecylinder::Pipecylinder(float rI, float rO, float l) :
normals->push_back(normalizeVec(osg::Vec3(sin(phiN)*rO, cos(phiN)*rO, 0)));
normals->push_back(normalizeVec(osg::Vec3(sin(phiN)*rO, cos(phiN)*rO, 0)));
//the texture coordinates
texcoords->push_back(osg::Vec2(1.0f*i/(nEdges), 0.0f));
texcoords->push_back(osg::Vec2(1.0f*j/(nEdges), 0.0f));
texcoords->push_back(osg::Vec2(1.0f*j/(nEdges), 1.0f));
texcoords->push_back(osg::Vec2(1.0f*i/(nEdges), 1.0f));
texcoords->push_back(osg::Vec2(1.0f*j/(nEdges), 1.0f));
texcoords->push_back(osg::Vec2(1.0f*j/(nEdges), 0.0f));
texcoords->push_back(osg::Vec2(1.0f*i/(nEdges), 0.0f));
//the planes
basePlane = new osg::DrawElementsUInt(osg::PrimitiveSet::QUADS, 0);
basePlane->push_back(vertIdx);
Expand Down

0 comments on commit 2345a73

Please sign in to comment.