Fix classic fog

This commit is contained in:
Vincent Lejeune 2014-11-11 22:43:25 +01:00
parent 09fa1ee3cb
commit 192ed8a486

View File

@ -10,7 +10,7 @@ vec4 getPosFromUVDepth(vec3 uvDepth, mat4 InverseProjectionMatrix);
void main()
{
vec2 uv = gl_FragCoord.xy / screen;
vec2 uv = 2. * gl_FragCoord.xy / screen;
float z = texture(tex, uv).x;
vec4 xpos = getPosFromUVDepth(vec3(uv, z), InverseProjectionMatrix);