1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-05 19:45:33 +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 #endif
#if FOG #if FOG
float fogValue = shSaturate((length(cameraPos.xyz-worldPos) - fogParams.y) * fogParams.w); float fogValue = shSaturate((depthPassthrough - fogParams.y) * fogParams.w);
#if UNDERWATER #if UNDERWATER
// regular fog only if fragment is above water // regular fog only if fragment is above water

View file

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

View file

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