Removed unused code.
This commit is contained in:
parent
0489fc81fa
commit
0887ff5f46
@ -82,7 +82,6 @@ float samplePointShadow(samplerCubeShadow shadowMap, vec3 lightDirection) {
|
|||||||
float compValue = 0.5*(-A*length(lightDirection) + B)/length(lightDirection) + 0.5;
|
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)));
|
float bias = 0.001*tan(acos(clamp(dot(vNormal, -directionalLightVector), 0.0, 1.0)));
|
||||||
bias = clamp(bias, 0.0, 0.01);
|
bias = clamp(bias, 0.0, 0.01);
|
||||||
//return texture(shadowMap, vec4(lightDirection , length(lightDirection)/farPlane - bias));
|
|
||||||
return texture(shadowMap, vec4(lightDirection , compValue - bias));
|
return texture(shadowMap, vec4(lightDirection , compValue - bias));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user