Ported osgUtil, osgDB, osgGA, NodeKits and plugins to compile against OpenGL ES 1.1 and OpenGL ES 2.0.
This commit is contained in:
@@ -216,7 +216,11 @@ namespace
|
||||
texenv->setMode(osg::TexEnv::DECAL);
|
||||
ss->setTextureAttributeAndModes(0, texenv.get(), osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
||||
|
||||
ss->setMode( GL_ALPHA_TEST, osg::StateAttribute::OFF );
|
||||
#if !defined(OSG_GLES2_AVAILABLE)
|
||||
ss->setMode( GL_ALPHA_TEST, osg::StateAttribute::OFF );
|
||||
#else
|
||||
osg::notify(osg::NOTICE)<<"Warning: osgFX::AnisotropicLighting unable to disable GL_ALPHA_TEST."<<std::endl;
|
||||
#endif
|
||||
|
||||
addPass(ss.get());
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@ namespace
|
||||
ss->setAttributeAndModes(_wf_mat.get(), osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
||||
|
||||
ss->setMode(GL_LIGHTING, osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
||||
ss->setTextureMode(0, GL_TEXTURE_1D, osg::StateAttribute::OVERRIDE|osg::StateAttribute::OFF);
|
||||
ss->setTextureMode(0, GL_TEXTURE_2D, osg::StateAttribute::OVERRIDE|osg::StateAttribute::OFF);
|
||||
|
||||
addPass(ss.get());
|
||||
|
||||
@@ -50,6 +50,8 @@ namespace
|
||||
|
||||
void apply(osg::State& state) const
|
||||
{
|
||||
#ifdef OSG_GL_MATRICES_AVAILABLE
|
||||
|
||||
glMatrixMode(GL_TEXTURE);
|
||||
|
||||
if (_active) {
|
||||
@@ -74,6 +76,9 @@ namespace
|
||||
}
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
#else
|
||||
osg::notify(osg::NOTICE)<<"Warning: osgFX::SpecualHighlights unable to set texture matrix."<<std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user