Added Texture3D implementation.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "LineWidth.h"
|
||||
#include "Texture1D.h"
|
||||
#include "Texture2D.h"
|
||||
#include "Texture3D.h"
|
||||
#include "TextureCubeMap.h"
|
||||
#include "TexEnv.h"
|
||||
#include "TexEnvCombine.h"
|
||||
@@ -657,6 +658,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
|
||||
attribute = new osg::Texture2D();
|
||||
((ive::Texture2D*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVETEXTURE3D){
|
||||
attribute = new osg::Texture3D();
|
||||
((ive::Texture3D*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVETEXTURECUBEMAP){
|
||||
attribute = new osg::TextureCubeMap();
|
||||
((ive::TextureCubeMap*)(attribute))->read(this);
|
||||
|
||||
Reference in New Issue
Block a user