Merge remote-tracking branch 'origin/ssao' into qzdoom

This commit is contained in:
Magnus Norddahl 2016-10-13 18:12:56 +02:00
commit 2a0ab96341
2 changed files with 3 additions and 1 deletions

View file

@ -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++)
{

View file

@ -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);