Tweak values
This commit is contained in:
parent
ebe11370a2
commit
ddecd23472
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user