Fix fog looking weird on transparent.

But mixing alpha with 0 instead of 1.
This commit is contained in:
Vincent Lejeune 2014-02-05 15:07:57 +01:00
parent 62964430a6
commit 653a695eda

View File

@ -28,5 +28,5 @@ void main()
fog = min(fog, fogmax);
FragColor = vec4(vec4(col, 1.) * fog + color *(1. - fog));
FragColor = vec4(vec4(col, 0.) * fog + color *(1. - fog));
}