From 50a370dc561317c97a632119939b2ed4cb8bceb6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 9 Feb 2005 11:30:42 +0000 Subject: [PATCH] Added vertical offset to multiple movies instances --- examples/osgmovie/osgmovie.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/osgmovie/osgmovie.cpp b/examples/osgmovie/osgmovie.cpp index 60f108a3d..a1145b2ed 100644 --- a/examples/osgmovie/osgmovie.cpp +++ b/examples/osgmovie/osgmovie.cpp @@ -252,6 +252,8 @@ int main(int argc, char** argv) osg::Image* image = osgDB::readImageFile(arguments[i]); geode->addDrawable(createTexturedQuadGeometry(pos,image->s(),image->t(),image)); geode->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::OFF); + + pos.z() += image->t()*1.5f; } }