Added support for osg::Stencil into .ive
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "StateSet.h"
|
||||
#include "AlphaFunc.h"
|
||||
#include "BlendColor.h"
|
||||
#include "Stencil.h"
|
||||
#include "BlendFunc.h"
|
||||
#include "Depth.h"
|
||||
#include "Material.h"
|
||||
@@ -1081,6 +1082,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
|
||||
attribute = new osg::PointSprite();
|
||||
((ive::PointSprite*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVESTENCIL){
|
||||
attribute = new osg::Stencil();
|
||||
((ive::Stencil*)(attribute))->read(this);
|
||||
}
|
||||
else{
|
||||
throw Exception("Unknown StateAttribute in StateSet::read()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user