Added support for TexMat to .ive plugin
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "TexEnv.h"
|
||||
#include "TexEnvCombine.h"
|
||||
#include "TexGen.h"
|
||||
#include "TexMat.h"
|
||||
|
||||
#include "Group.h"
|
||||
#include "MatrixTransform.h"
|
||||
@@ -570,6 +571,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
|
||||
attribute = new osg::TexGen();
|
||||
((ive::TexGen*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVETEXMAT){
|
||||
attribute = new osg::TexMat();
|
||||
((ive::TexMat*)(attribute))->read(this);
|
||||
}
|
||||
else{
|
||||
throw Exception("Unkown StateAttribute in StateSet::read()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user