ThickFogDistance and ThickFogMultiplier added to GLES main.fp shader file.
This commit is contained in:
parent
c6a6ae23a6
commit
f9f9fc602c
1 changed files with 7 additions and 0 deletions
|
|
@ -514,6 +514,13 @@ void main()
|
|||
fogdist = max(16.0, distance(pixelpos.xyz, uCameraPos.xyz));
|
||||
#endif
|
||||
|
||||
if (uThickFogDistance > 0.0)
|
||||
{
|
||||
if (fogdist > uThickFogDistance)
|
||||
{
|
||||
fogdist = fogdist + uThickFogMultiplier * (fogdist - uThickFogDistance);
|
||||
}
|
||||
}
|
||||
fogfactor = exp2 (uFogDensity * fogdist);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue