From 7ff11e1105834f7732f9c2796a93c5e53aa94215 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 28 Feb 2015 13:51:22 +0100 Subject: [PATCH] Removed unused code. --- data/shader/phong.fsh | 1 - 1 file changed, 1 deletion(-) diff --git a/data/shader/phong.fsh b/data/shader/phong.fsh index 08a6bf0..c06210b 100644 --- a/data/shader/phong.fsh +++ b/data/shader/phong.fsh @@ -82,7 +82,6 @@ float samplePointShadow(samplerCubeShadow shadowMap, vec3 lightDirection) { float compValue = 0.5*(-A*length(lightDirection) + B)/length(lightDirection) + 0.5; float bias = 0.001*tan(acos(clamp(dot(vNormal, -directionalLightVector), 0.0, 1.0))); bias = clamp(bias, 0.0, 0.01); - //return texture(shadowMap, vec4(lightDirection , length(lightDirection)/farPlane - bias)); return texture(shadowMap, vec4(lightDirection , compValue - bias)); }