From Ulrich Hertlein, added support for osg::BlendColor to .ive format.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "DataInputStream.h"
|
||||
#include "StateSet.h"
|
||||
#include "AlphaFunc.h"
|
||||
#include "BlendColor.h"
|
||||
#include "BlendFunc.h"
|
||||
#include "Depth.h"
|
||||
#include "Material.h"
|
||||
@@ -967,6 +968,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
|
||||
attribute = new osg::AlphaFunc();
|
||||
((ive::AlphaFunc*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVEBLENDCOLOR){
|
||||
attribute = new osg::BlendColor();
|
||||
((ive::BlendColor*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVEBLENDFUNC ||
|
||||
attributeID == IVEBLENDFUNCSEPARATE){
|
||||
attribute = new osg::BlendFunc();
|
||||
|
||||
Reference in New Issue
Block a user