diff --git a/data/shaders/fog.frag b/data/shaders/fog.frag index 3560b0a69..104b57d83 100644 --- a/data/shaders/fog.frag +++ b/data/shaders/fog.frag @@ -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);