Ported osgUtil, osgDB, osgGA, NodeKits and plugins to compile against OpenGL ES 1.1 and OpenGL ES 2.0.
This commit is contained in:
@@ -60,8 +60,10 @@ Node* OrientationConverter::convert( Node *node )
|
||||
|
||||
if (!S.isIdentity())
|
||||
{
|
||||
// Add a normalize state. This will be removed if the FlattenStaticTransformsVisitor works
|
||||
transform->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON);
|
||||
#if !defined(OSG_GLES2_AVAILABLE)
|
||||
// Add a normalize state. This will be removed if the FlattenStaticTransformsVisitor works
|
||||
transform->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON);
|
||||
#endif
|
||||
}
|
||||
|
||||
root->addChild(transform);
|
||||
|
||||
@@ -723,7 +723,8 @@ int main( int argc, char **argv )
|
||||
}
|
||||
|
||||
|
||||
#if 1
|
||||
#if !defined(OSG_GLES2_AVAILABLE)
|
||||
|
||||
// add back in enabling of the GL_ALPHA_TEST to get around the core OSG no longer setting it by default for opaque bins.
|
||||
// the alpha test is required for the volume rendering alpha clipping to work.
|
||||
loadedModel->getOrCreateStateSet()->setMode(GL_ALPHA_TEST, osg::StateAttribute::ON);
|
||||
|
||||
Reference in New Issue
Block a user