- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/ViewDependentShadowMap
r12887 r13041 62 62 osg::Matrixd projectionMatrix; 63 63 osg::Matrixd modelViewMatrix; 64 64 65 65 typedef std::vector<osg::Vec3d> Vertices; 66 66 Vertices corners; 67 67 68 68 typedef std::vector<unsigned int> Indices; 69 69 typedef std::vector<Indices> Faces; … … 82 82 // forward declare 83 83 class ViewDependentData; 84 84 85 85 struct OSGSHADOW_EXPORT LightData : public osg::Referenced 86 86 { … … 88 88 89 89 virtual void setLightData(osg::RefMatrix* lm, const osg::Light* l, const osg::Matrixd& modelViewMatrix); 90 90 91 91 ViewDependentData* _viewDependentData; 92 92 93 93 osg::ref_ptr<osg::RefMatrix> lightMatrix; 94 94 osg::ref_ptr<const osg::Light> light; … … 102 102 ActiveTextureUnits textureUnits; 103 103 }; 104 104 105 105 typedef std::list< osg::ref_ptr<LightData> > LightDataList; 106 106 … … 112 112 113 113 ViewDependentData* _viewDependentData; 114 114 115 115 unsigned int _textureUnit; 116 116 osg::ref_ptr<osg::Texture2D> _texture; … … 120 120 121 121 typedef std::list< osg::ref_ptr<ShadowData> > ShadowDataList; 122 122 123 123 124 124 class OSGSHADOW_EXPORT ViewDependentData : public osg::Referenced … … 134 134 135 135 osg::StateSet* getStateSet() { return _stateset.get(); } 136 136 137 137 virtual void releaseGLObjects(osg::State* = 0) const; 138 138 … … 163 163 164 164 virtual bool adjustPerspectiveShadowMapCameraSettings(osgUtil::RenderStage* renderStage, Frustum& frustum, LightData& positionedLight, osg::Camera* camera); 165 165 166 166 virtual bool assignTexGenSettings(osgUtil::CullVisitor* cv, osg::Camera* camera, unsigned int textureUnit, osg::TexGen* texgen); 167 167 … … 186 186 osg::ref_ptr<osg::Texture2D> _fallbackBaseTexture; 187 187 osg::ref_ptr<osg::Texture2D> _fallbackShadowMapTexture; 188 188 189 189 typedef std::vector< osg::ref_ptr<osg::Uniform> > Uniforms; 190 190 Uniforms _uniforms;
