Changeset 13041 for OpenSceneGraph/trunk/include/osgShadow/ShadowMap
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgShadow/ShadowMap (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/ShadowMap
r9540 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 ShadowMap(const ShadowMap& es, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 33 33 34 34 META_Object(osgShadow, ShadowMap); 35 35 36 36 /** Set the texture unit that the shadow texture will be applied on.*/ 37 37 void setTextureUnit(unsigned int unit); … … 68 68 /** Add a shader to internal list, will be used instead of the default ones */ 69 69 inline void addShader(osg::Shader* shader) { _shaderList.push_back(shader); } 70 70 71 71 /** Reset internal shader list */ 72 72 inline void clearShaderList() { _shaderList.clear(); } … … 74 74 /** initialize the ShadowedScene and local cached data structures.*/ 75 75 virtual void init(); 76 76 77 77 /** run the update traversal of the ShadowedScene and update any loca chached data structures.*/ 78 78 virtual void update(osg::NodeVisitor& nv); 79 79 80 80 /** run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.*/ 81 81 virtual void cull(osgUtil::CullVisitor& cv); 82 82 83 83 /** Clean scene graph from any shadow technique specific nodes, state and drawables.*/ 84 84 virtual void cleanSceneGraph(); 85 85 86 86 // debug methods 87 87 … … 95 95 96 96 virtual void createShaders(); 97 97 98 98 // forward declare, interface and implementation provided in ShadowMap.cpp 99 99 class DrawableDrawWithDepthShadowComparisonOffCallback;
