From da64e93eb536a465ed0907c69f56f97bb7f362d2 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 8 Sep 2010 00:39:26 +0200 Subject: [PATCH] larger default shadow bias --- src/libhw/vpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libhw/vpl.cpp b/src/libhw/vpl.cpp index a2edd48a..ab771b7b 100644 --- a/src/libhw/vpl.cpp +++ b/src/libhw/vpl.cpp @@ -365,7 +365,7 @@ void VPLShaderManager::configure(const VPL &vpl, const BSDF *bsdf, const Luminai << " float d = length(lightVec);" << endl << " vec3 nLightVec = lightVec/d, absLightVec = abs(lightVec);" << endl << " float depth = max(max(absLightVec.x, absLightVec.y), absLightVec.z);" << endl - << " depth = (depth-nearClip) * invClipRange - 0.001;" << endl + << " depth = (depth-nearClip) * invClipRange - 0.005;" << endl << " float shadow = textureCube(shadowMap, nLightVec).r > depth ? 1.0 : 0.0;" << endl << endl << " /* Shading */" << endl