#include <osgViewer/Viewer> #include <osgViewer/ViewerEventHandlers> #include <osg/Node> #include <osg/Group> #include <osg/Geode> #include <osg/Camera> #include <osg/ShapeDrawable> #include <osg/ComputeBoundsVisitor> #include <osg/BoundingBox> #include <osg/BoundingSphere> #include <osg/AnimationPath> #include <osgDB/ReadFile> #include <osgDB/WriteFile> #include <osgShadow/ShadowedScene> #include <osgShadow/ShadowVolume> #include <osgShadow/ShadowTexture> #include <osgShadow/ShadowMap> #include <osgShadow/SoftShadowMap> #include <osgShadow/ParallelSplitShadowMap> #include <osgShadow/MinimalShadowMap> #include <osgShadow/StandardShadowMap> #include <osgShadow/SoftShadowMap> #include <osgShadow/ViewDependentShadowTechnique> #include <osgUtil/Optimizer> #include <osgUtil/SmoothingVisitor> #include <osg/AnimationPath> #include <iostream>
//标识阴影接收对象 const int ReceivesShadowTraversalMask=0x1; //标识阴影投影对象 const int CastsShadowTraversalMask=0x2;
//地面
osg::ref_ptr<osg::Node> DrawGround(float a1,float b1,float c11,
OSG阴影
最新推荐文章于 2024-05-08 10:47:41 发布