1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-05 14:15:40 +00:00

Revert "fog now distance based instead of depth"

This reverts commit 7ee038fdd7.
This commit is contained in:
scrawl 2013-01-09 20:18:26 +01:00
parent bc73c5b1ec
commit 111e38ef25
3 changed files with 3 additions and 2 deletions

View file

@ -265,7 +265,7 @@
#endif
#if FOG
float fogValue = shSaturate((length(cameraPos.xyz-worldPos) - fogParams.y) * fogParams.w);
float fogValue = shSaturate((depthPassthrough - fogParams.y) * fogParams.w);
#if UNDERWATER
// regular fog only if fragment is above water

View file

@ -1,5 +1,6 @@
configuration water_reflection
{
fog false
shadows false
shadows_pssm false
mrt_output false

View file

@ -337,7 +337,7 @@
#if FOG
float fogValue = shSaturate((length(cameraPos.xyz-worldPos) - fogParams.y) * fogParams.w);
float fogValue = shSaturate((depth - fogParams.y) * fogParams.w);
#if UNDERWATER
// regular fog only if fragment is above water