Doing same thick fogdist calc for AmbientOcclusionColor.
This commit is contained in:
parent
f9f9fc602c
commit
b56d184d8c
1 changed files with 7 additions and 0 deletions
|
|
@ -797,6 +797,13 @@ vec3 AmbientOcclusionColor()
|
|||
{
|
||||
fogdist = max(16.0, distance(pixelpos.xyz, uCameraPos.xyz));
|
||||
}
|
||||
if (uThickFogDistance > 0.0)
|
||||
{
|
||||
if (fogdist > uThickFogDistance)
|
||||
{
|
||||
fogdist = fogdist + uThickFogMultiplier * (fogdist - uThickFogDistance);
|
||||
}
|
||||
}
|
||||
fogfactor = exp2 (uFogDensity * fogdist);
|
||||
|
||||
return mix(uFogColor.rgb, vec3(0.0), fogfactor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue