14#ifndef OSGSHADOW_SOFTSHADOWMAP
15#define OSGSHADOW_SOFTSHADOWMAP 1
Vec2f Vec2
Definition Vec2:21
The osgShadow library is a NodeKit that extends the core scene graph to add support for a range of sh...
Definition ConvexPolyhedron:33
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Stores a set of modes and attributes which represent a set of OpenGL state.
Definition StateSet:46
void setPolygonOffset(const osg::Vec2 &polyOffset)
set the polygon offset used initially
const osg::Vec2 & getPolygonOffset() const
get the used polygon offset
Definition ShadowMap:46
void createUniforms()
Create the managed Uniforms.
META_Object(osgShadow, SoftShadowMap)
float _jitteringScale
Definition SoftShadowMap:83
float getJitteringScale() const
Get the value used for jittering scale in the shader.
Definition SoftShadowMap:52
SoftShadowMap(const SoftShadowMap &es, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
osg::ref_ptr< osg::Uniform > _jitteringScaleUniform
Definition SoftShadowMap:81
void setJitterTextureUnit(unsigned int jitterTextureUnit)
Set the texture unit that the jitter texture will be applied on.
void initJittering(osg::StateSet *ss)
void setJitteringScale(float jitteringScale)
Set the values for jittering scale the shader will use.
float _softnessWidth
Definition SoftShadowMap:82
unsigned int _jitterTextureUnit
Definition SoftShadowMap:84
float getBias() const
Return the bias value.
Definition SoftShadowMap:69
void setBias(float bias)
Add a small bias to the z-value, this can reduce shadow acne problem.
Definition SoftShadowMap:66
unsigned int getJitterTextureUnit() const
Get the texture unit that the jitter texture will be applied on.
Definition SoftShadowMap:58
float getSoftnessWidth() const
Get the value used for width of the soft penumbra in the shader.
Definition SoftShadowMap:42
virtual ~SoftShadowMap(void)
Definition SoftShadowMap:73
osg::ref_ptr< osg::Uniform > _softnessWidthUniform
Definition SoftShadowMap:80
void setSoftnessWidth(float softnessWidth)
Set the values for width of the soft penumbra the shader will use.
#define OSGSHADOW_EXPORT
Definition Export:39