Tweak values

This commit is contained in:
Vincent Lejeune 2014-11-02 19:07:02 +01:00
parent ebe11370a2
commit ddecd23472
4 changed files with 4 additions and 4 deletions

View File

@ -17,5 +17,5 @@ void main(void)
vec4 col = texture(tex, uv);
#endif
if (col.a < 0.5) discard;
FragColor = vec4(exp(1. * (2. * gl_FragCoord.z - 1.) / gl_FragCoord.w));
FragColor = vec4(exp(8. * (2. * gl_FragCoord.z - 1.) / gl_FragCoord.w));
}

View File

@ -2,5 +2,5 @@ out vec4 FragColor;
void main()
{
FragColor = vec4(exp(1. * (2. * gl_FragCoord.z - 1.) / gl_FragCoord.w));
FragColor = vec4(exp(8. * (2. * gl_FragCoord.z - 1.) / gl_FragCoord.w));
}

View File

@ -12,5 +12,5 @@ void main(void)
{
vec4 col = texture(tex, uv);
if (col.a < 0.5) discard;
FragColor = vec4(exp(1. * (2. * gl_FragCoord.z - 1.) / gl_FragCoord.w));
FragColor = vec4(exp(8. * (2. * gl_FragCoord.z - 1.) / gl_FragCoord.w));
}

View File

@ -56,7 +56,7 @@ float getShadowFactor(vec3 pos, float bias, int index)
float z = texture(shadowtex, vec3(shadowtexcoord, float(index))).x;
float d = shadowcoord.z;
return min(pow(exp(-1. * d) * z, 240.), 1.);
return min(pow(exp(-8. * d) * z, 256.), 1.);
}
void main() {