Added a MatrixTransform to tilt the osgreflect demo so that the reflection

plane is seen clearly.
This commit is contained in:
Robert Osfield
2002-07-15 13:14:28 +00:00
parent 0a6fdb6ae0
commit e9f30add38

View File

@@ -189,7 +189,8 @@ int main( int argc, char **argv )
osg::Drawable* mirror = createMirrorSurface(xMin,xMax,yMin,yMax,z);
osg::Group* rootNode = new osg::Group;
osg::MatrixTransform* rootNode = new osg::MatrixTransform;
rootNode->setMatrix(osg::Matrix::rotate(osg::inDegrees(45.0f),1.0f,0.0f,0.0f));
// make sure that the global color mask exists.
osg::ColorMask* rootColorMask = new osg::ColorMask;