Ported all the demos and loaders across to use the new multitexturing API.

This commit is contained in:
Robert Osfield
2002-07-10 11:22:24 +00:00
parent 46af97727a
commit c1fc3dcdb9
19 changed files with 105 additions and 50 deletions

View File

@@ -65,12 +65,11 @@ public:
}
osg::TexEnv* texenv = new osg::TexEnv;
texenv->setMode(osg::TexEnv::MODULATE);
dstate->setAttribute( texenv );
dstate->setTextureAttribute(0, texenv );
}
}
if (ctx && tx) { // texture exists
dstate->setAttributeAndModes(tx,osg::StateAttribute::ON);
dstate->setMode(GL_TEXTURE_2D,StateAttribute::ON);
dstate->setTextureAttributeAndModes(0,tx,osg::StateAttribute::ON);
}
}
}