1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-12 04:14:05 +00:00

Revert "fog now distance based instead of depth"

This reverts commit 7ee038fdd7fcb51f901893ae0e6554a2f0cc3dc1.
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