Changeset 13041 for OpenSceneGraph/trunk/include/osgShadow/ShadowVolume
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/ShadowVolume
r6141 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 31 31 32 32 ShadowVolume(const ShadowVolume& es, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 33 33 34 34 META_Object(osgShadow, ShadowVolume); 35 35 36 36 37 37 void setDrawMode(osgShadow::ShadowVolumeGeometry::DrawMode drawMode); … … 43 43 /** initialize the ShadowedScene and local cached data structures.*/ 44 44 virtual void init(); 45 45 46 46 /** run the update traversal of the ShadowedScene and update any loca chached data structures.*/ 47 47 virtual void update(osg::NodeVisitor& nv); 48 48 49 49 /** run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.*/ 50 50 virtual void cull(osgUtil::CullVisitor& cv); 51 51 52 52 /** Clean scene graph from any shadow technique specific nodes, state and drawables.*/ 53 53 virtual void cleanSceneGraph(); 54 54 55 55 56 56 protected : 57 57 58 58 virtual ~ShadowVolume(); 59 59 60 60 osgShadow::ShadowVolumeGeometry::DrawMode _drawMode; 61 61 bool _dynamicShadowVolumes; 62 62 63 63 osg::ref_ptr<osgShadow::OccluderGeometry> _occluder; 64 64 65 65 OpenThreads::Mutex _shadowVolumeMutex; 66 66 osg::ref_ptr<osgShadow::ShadowVolumeGeometry> _shadowVolume; 67 67 68 68 osg::Vec4 _lightpos; 69 69 70 70 osg::ref_ptr<osg::Light> _ambientLight; 71 71 osg::ref_ptr<osg::Light> _diffuseLight;
