From Ali Botorabi, adding of osg::Depth support in .ive format.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "StateSet.h"
|
||||
#include "AlphaFunc.h"
|
||||
#include "BlendFunc.h"
|
||||
#include "Depth.h"
|
||||
#include "Material.h"
|
||||
#include "CullFace.h"
|
||||
#include "ClipPlane.h"
|
||||
@@ -818,6 +819,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
|
||||
attribute = new osg::BlendFunc();
|
||||
((ive::BlendFunc*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVEDEPTH){
|
||||
attribute = new osg::Depth();
|
||||
((ive::Depth*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVEVIEWPORT){
|
||||
attribute = new osg::Viewport();
|
||||
((ive::Viewport*)(attribute))->read(this);
|
||||
|
||||
Reference in New Issue
Block a user