From Lukasz Izdebski, Added StencilTwoSided support to ive plugin
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "AlphaFunc.h"
|
||||
#include "BlendColor.h"
|
||||
#include "Stencil.h"
|
||||
#include "StencilTwoSided.h"
|
||||
#include "BlendFunc.h"
|
||||
#include "BlendEquation.h"
|
||||
#include "Depth.h"
|
||||
@@ -59,7 +60,6 @@
|
||||
#include "Light.h"
|
||||
#include "PolygonStipple.h"
|
||||
|
||||
|
||||
#include "Node.h"
|
||||
#include "Group.h"
|
||||
#include "MatrixTransform.h"
|
||||
@@ -1507,6 +1507,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
|
||||
attribute = new osg::Stencil();
|
||||
((ive::Stencil*)(attribute.get()))->read(this);
|
||||
}
|
||||
else if(attributeID == IVESTENCILTWOSIDED){
|
||||
attribute = new osg::StencilTwoSided();
|
||||
((ive::StencilTwoSided*)(attribute.get()))->read(this);
|
||||
}
|
||||
else if(attributeID == IVEFOG){
|
||||
attribute = new osg::Fog();
|
||||
((ive::Fog*)(attribute.get()))->read(this);
|
||||
|
||||
Reference in New Issue
Block a user