This commit is contained in:
2015-02-13 20:00:39 +01:00
parent 523c4adb21
commit bdc2ef58f4
5 changed files with 109 additions and 62 deletions

View File

@@ -8,8 +8,8 @@ uniform samplerCubeShadow texShadowMaps[lights];
float VectorToDepth (vec3 Vec)
{
vec3 AbsVec = abs(Vec);
//float LocalZcomp = max(AbsVec.x, max(AbsVec.y, AbsVec.z));
float LocalZcomp = length(AbsVec);
float LocalZcomp = max(AbsVec.x, max(AbsVec.y, AbsVec.z));
//float LocalZcomp = length(AbsVec);
// Replace f and n with the far and near plane values you used when
// you drew your cube map.