mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
Fix AmbientOcclusionColor bug where pixelpos was assumed to be in eye space coordinates
This commit is contained in:
parent
660a45a0e0
commit
14c1a77f8a
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ vec3 AmbientOcclusionColor()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fogdist = max(16.0, length(pixelpos.xyz));
|
fogdist = max(16.0, distance(pixelpos.xyz, uCameraPos.xyz));
|
||||||
}
|
}
|
||||||
fogfactor = exp2 (uFogDensity * fogdist);
|
fogfactor = exp2 (uFogDensity * fogdist);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue