mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
Merge remote-tracking branch 'origin/ssao' into qzdoom
This commit is contained in:
commit
2a0ab96341
2 changed files with 3 additions and 1 deletions
|
@ -316,6 +316,8 @@ void GLWall::DrawDecal(DBaseDecal *decal)
|
|||
gl_RenderState.SetFog(0,-1);
|
||||
}
|
||||
|
||||
gl_RenderState.SetNormal(glseg.Normal());
|
||||
|
||||
FQuadDrawer qd;
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
|
|
|
@ -287,7 +287,7 @@ vec3 AmbientOcclusionColor()
|
|||
}
|
||||
else
|
||||
{
|
||||
fogdist = max(16.0, length(pixelpos.xyz));
|
||||
fogdist = max(16.0, distance(pixelpos.xyz, uCameraPos.xyz));
|
||||
}
|
||||
fogfactor = exp2 (uFogDensity * fogdist);
|
||||
|
||||
|
|
Loading…
Reference in a new issue