Fixed normal orientation

This commit is contained in:
Robert Osfield 2004-03-11 09:04:02 +00:00
parent 697af707e4
commit 89379f31aa

View File

@ -123,7 +123,7 @@ osg::Node* createRectangle(osg::BoundingBox& bb,
geom->setTexCoordArray(0,texcoords);
osg::Vec3Array* normals = new osg::Vec3Array(1);
(*normals)[0].set(-1.0f,0.0f,0.0f);
(*normals)[0].set(0.0f,-1.0f,0.0f);
geom->setNormalArray(normals);
geom->setNormalBinding(osg::Geometry::BIND_OVERALL);