|
请问下面代码为什么旋转不了纹理呢?谢谢!
osg::ref_ptr<osg::StateSet> ss = bottom->getOrCreateStateSet();
osg::TexMat* texm = new osg::TexMat();
texm->setMatrix(osg::Matrix::rotate(osg:egreesToRadians(90.0f), osg::Vec3(0.0f, 0.0f, 1.0f)));
ss->setTextureAttribute(0, texm); |
|