Implemented more code for the new osgprerender demo.

This commit is contained in:
Robert Osfield
2002-07-09 19:23:53 +00:00
parent 68540f5fb1
commit 842eb59e1f
3 changed files with 335 additions and 8 deletions

View File

@@ -238,11 +238,13 @@ ImpostorSprite* ImpostorSpriteManager::createOrReuseImpostorSprite(int s,int t,i
stateset->setMode(GL_LIGHTING,osg::StateAttribute::OFF);
stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
stateset->setAttributeAndModes( _alphafunc.get(), StateAttribute::ON );
Texture* texture = osgNew Texture;
stateset->setAttributeAndModes(texture,StateAttribute::ON);
stateset->setAttributeAndModes( _alphafunc.get(), StateAttribute::ON );
stateset->setAttribute(_texenv.get());
stateset->setTextureAttributeAndModes(0,texture,StateAttribute::ON);
stateset->setTextureAttribute(0,_texenv.get());
/*
TexEnv* texenv = osgNew TexEnv;