mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 17:20:12 +02:00
Adjust the fog density; getting different results on Linux vs. OS X.
This commit is contained in:
parent
c6deb0c450
commit
aabff3f141
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue