Added Texuture::SubloadCallback example into the osgprerender demo to illustrate
how to use it. Changed the ImpostorSprite to use LINEAR,LINEAR for min and mag filters for the impostor texture.
This commit is contained in:
@@ -254,6 +254,8 @@ ImpostorSprite* ImpostorSpriteManager::createOrReuseImpostorSprite(int s,int t,i
|
||||
stateset->setAttributeAndModes( _alphafunc.get(), StateAttribute::ON );
|
||||
|
||||
Texture* texture = osgNew Texture;
|
||||
texture->setFilter(Texture::MIN_FILTER,Texture::LINEAR);
|
||||
texture->setFilter(Texture::MAG_FILTER,Texture::LINEAR);
|
||||
|
||||
stateset->setTextureAttributeAndModes(0,texture,StateAttribute::ON);
|
||||
stateset->setTextureAttribute(0,_texenv.get());
|
||||
|
||||
Reference in New Issue
Block a user