Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -58,32 +58,32 @@ class OSGSHADOW_EXPORT SoftShadowMap : public ShadowMap
|
||||
unsigned int getJitterTextureUnit() const { return _jitterTextureUnit; }
|
||||
|
||||
|
||||
/** Add a small bias to the z-value, this can reduce
|
||||
* shadow acne problem.
|
||||
/** Add a small bias to the z-value, this can reduce
|
||||
* shadow acne problem.
|
||||
* This is the same as calling setPolygonOffset(osg::Vec2(bias,0));
|
||||
* Suitable values are 0-0.005
|
||||
* Suitable values are 0-0.005
|
||||
* Default is 0. */
|
||||
void setBias(float bias) { setPolygonOffset(osg::Vec2(bias,0)); }
|
||||
|
||||
|
||||
/** Return the bias value */
|
||||
float getBias() const { return getPolygonOffset().x(); }
|
||||
|
||||
|
||||
protected:
|
||||
virtual ~SoftShadowMap(void) {};
|
||||
|
||||
|
||||
/** Create the managed Uniforms */
|
||||
void createUniforms();
|
||||
void createShaders();
|
||||
void initJittering(osg::StateSet *ss);
|
||||
|
||||
|
||||
osg::ref_ptr<osg::Uniform> _softnessWidthUniform;
|
||||
osg::ref_ptr<osg::Uniform> _jitteringScaleUniform;
|
||||
float _softnessWidth;
|
||||
float _jitteringScale;
|
||||
unsigned int _jitterTextureUnit;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user