Adjust the fog density; getting different results on Linux vs. OS X.

This commit is contained in:
Andrzej Kapolka 2014-01-22 14:17:02 -08:00
parent c6deb0c450
commit aabff3f141

View file

@ -9,5 +9,7 @@
//
void main(void) {
gl_FragColor = vec4(gl_Color.rgb, exp(-0.25 / gl_FragCoord.w));
// use the standard exponential fog calculation
const float FOG_DENSITY = 0.5;
gl_FragColor = vec4(gl_Color.rgb, exp(-FOG_DENSITY / gl_FragCoord.w));
}