root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osgShadow/ParallelSplitShadowMap.cpp @ 13041

Revision 13041, 1.2 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1#include <osgShadow/ParallelSplitShadowMap>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6
7
8REGISTER_OBJECT_WRAPPER( osgShadow_ParallelSplitShadowMap,
9                         new osgShadow::ParallelSplitShadowMap,
10                         osgShadow::ParallelSplitShadowMap,
11                         "osg::Object osgShadow::ShadowTechnique osgShadow::ParallelSplitShadowMap" )
12{
13    ADD_VEC2F_SERIALIZER( PolygonOffset, osg::Vec2f() );  // _polgyonOffset
14    ADD_UINT_SERIALIZER( TextureResolution, 1024 );  // _resolution
15    ADD_DOUBLE_SERIALIZER( MaxFarDistance, 0.0 );  // _setMaxFarDistance
16    ADD_DOUBLE_SERIALIZER( MoveVCamBehindRCamFactor, 0.0 );  // _move_vcam_behind_rcam_factor
17    ADD_DOUBLE_SERIALIZER( MinNearDistanceForSplits, 5.0 );  // _split_min_near_dist
18    ADD_OBJECT_SERIALIZER( UserLight, osg::Light, NULL );  // _userLight
19    ADD_VEC2_SERIALIZER( AmbientBias, osg::Vec2() );  // _ambientBias
20
21    BEGIN_ENUM_SERIALIZER2( SplitCalculationMode, osgShadow::ParallelSplitShadowMap::SplitCalcMode, SPLIT_EXP );
22        ADD_ENUM_VALUE( SPLIT_LINEAR );
23        ADD_ENUM_VALUE( SPLIT_EXP );
24    END_ENUM_SERIALIZER();  // _SplitCalcMode
25}
Note: See TracBrowser for help on using the browser.