Added .osg support for osgShadow NodeKit
This commit is contained in:
40
src/osgPlugins/osgShadow/ShadowVolume.cpp
Normal file
40
src/osgPlugins/osgShadow/ShadowVolume.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#include <osgShadow/ShadowVolume>
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <osg/Vec3>
|
||||
#include <osg/Vec4>
|
||||
#include <osg/io_utils>
|
||||
|
||||
#include <osgDB/Registry>
|
||||
#include <osgDB/Input>
|
||||
#include <osgDB/Output>
|
||||
#include <osgDB/ParameterOutput>
|
||||
|
||||
bool ShadowVolume_readLocalData(osg::Object &obj, osgDB::Input &fr);
|
||||
bool ShadowVolume_writeLocalData(const osg::Object &obj, osgDB::Output &fw);
|
||||
|
||||
osgDB::RegisterDotOsgWrapperProxy ShadowVolume_Proxy
|
||||
(
|
||||
new osgShadow::ShadowVolume,
|
||||
"ShadowVolume",
|
||||
"Object ShadowTechnique ShadowVolume",
|
||||
ShadowVolume_readLocalData,
|
||||
ShadowVolume_writeLocalData
|
||||
);
|
||||
|
||||
bool ShadowVolume_readLocalData(osg::Object& obj, osgDB::Input &fr)
|
||||
{
|
||||
osgShadow::ShadowVolume& ss = static_cast<osgShadow::ShadowVolume&>(obj);
|
||||
bool itAdvanced = false;
|
||||
|
||||
return itAdvanced;
|
||||
}
|
||||
|
||||
bool ShadowVolume_writeLocalData(const osg::Object& obj, osgDB::Output& fw)
|
||||
{
|
||||
const osgShadow::ShadowVolume& ss = static_cast<const osgShadow::ShadowVolume &>(obj);
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user