Added prelimanary support for parallel split shadow maps into ViewDependentShadowMap.

This commit is contained in:
Robert Osfield
2011-11-22 21:55:30 +00:00
parent 116b9a978c
commit 92ed903a7f
4 changed files with 379 additions and 53 deletions

View File

@@ -23,7 +23,9 @@ ShadowSettings::ShadowSettings():
_minimumShadowMapNearFarRatio(0.05),
_shadowMapProjectionHint(PERSPECTIVE_SHADOW_MAP),
_perspectiveShadowMapCutOffAngle(2.0),
_shaderHint(NO_SHADERS),
_numShadowMapsPerLight(1),
_multipleShadowMapHint(PARALLEL_SPLIT),
_shaderHint(NO_SHADERS),
// _shaderHint(PROVIDE_FRAGMENT_SHADER),
_debugDraw(false)
{
@@ -38,6 +40,8 @@ ShadowSettings::ShadowSettings(const ShadowSettings& ss, const osg::CopyOp& copy
_minimumShadowMapNearFarRatio(ss._minimumShadowMapNearFarRatio),
_shadowMapProjectionHint(ss._shadowMapProjectionHint),
_perspectiveShadowMapCutOffAngle(ss._perspectiveShadowMapCutOffAngle),
_numShadowMapsPerLight(ss._numShadowMapsPerLight),
_multipleShadowMapHint(ss._multipleShadowMapHint),
_shaderHint(ss._shaderHint),
_debugDraw(ss._debugDraw)
{