Fix classic fog
This commit is contained in:
parent
09fa1ee3cb
commit
192ed8a486
@ -10,7 +10,7 @@ vec4 getPosFromUVDepth(vec3 uvDepth, mat4 InverseProjectionMatrix);
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec2 uv = gl_FragCoord.xy / screen;
|
vec2 uv = 2. * gl_FragCoord.xy / screen;
|
||||||
float z = texture(tex, uv).x;
|
float z = texture(tex, uv).x;
|
||||||
vec4 xpos = getPosFromUVDepth(vec3(uv, z), InverseProjectionMatrix);
|
vec4 xpos = getPosFromUVDepth(vec3(uv, z), InverseProjectionMatrix);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user