Improvements to osgShadow::ViewDependentShadowMap and ShadowSettings

This commit is contained in:
Robert Osfield
2011-10-17 14:40:29 +00:00
parent 0fc0c642bf
commit bdb0dfe27d
3 changed files with 197 additions and 43 deletions

View File

@@ -18,8 +18,9 @@ using namespace osgShadow;
ShadowSettings::ShadowSettings():
_lightNum(-1),
_baseShadowTextureUnit(1),
_useShadowMapTextureOverride(true),
_textureSize(2048,2048),
_minimumShadowMapNearFarRatio(0.01),
_minimumShadowMapNearFarRatio(0.05),
_shadowMapProjectionHint(PERSPECTIVE_SHADOW_MAP),
_perspectiveShadowMapCutOffAngle(2.0),
_shaderHint(NO_SHADERS),
@@ -32,6 +33,7 @@ ShadowSettings::ShadowSettings(const ShadowSettings& ss, const osg::CopyOp& copy
Object(ss,copyop),
_lightNum(ss._lightNum),
_baseShadowTextureUnit(ss._baseShadowTextureUnit),
_useShadowMapTextureOverride(ss._useShadowMapTextureOverride),
_textureSize(ss._textureSize),
_minimumShadowMapNearFarRatio(ss._minimumShadowMapNearFarRatio),
_shadowMapProjectionHint(ss._shadowMapProjectionHint),