Changeset 13041 for OpenSceneGraph/trunk/include/osgShadow/SoftShadowMap
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/SoftShadowMap
r12139 r13041 59 59 60 60 61 /** Add a small bias to the z-value, this can reduce 62 * shadow acne problem. 61 /** Add a small bias to the z-value, this can reduce 62 * shadow acne problem. 63 63 * This is the same as calling setPolygonOffset(osg::Vec2(bias,0)); 64 * Suitable values are 0-0.005 64 * Suitable values are 0-0.005 65 65 * Default is 0. */ 66 66 void setBias(float bias) { setPolygonOffset(osg::Vec2(bias,0)); } 67 67 68 68 /** Return the bias value */ 69 69 float getBias() const { return getPolygonOffset().x(); } … … 72 72 protected: 73 73 virtual ~SoftShadowMap(void) {}; 74 74 75 75 /** Create the managed Uniforms */ 76 76 void createUniforms(); 77 77 void createShaders(); 78 78 void initJittering(osg::StateSet *ss); 79 79 80 80 osg::ref_ptr<osg::Uniform> _softnessWidthUniform; 81 81 osg::ref_ptr<osg::Uniform> _jitteringScaleUniform; … … 84 84 unsigned int _jitterTextureUnit; 85 85 86 86 87 87 88 88 };
