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:
parent
bc73c5b1ec
commit
111e38ef25
@ -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
|
||||
|
@ -1,5 +1,6 @@
|
||||
configuration water_reflection
|
||||
{
|
||||
fog false
|
||||
shadows false
|
||||
shadows_pssm false
|
||||
mrt_output false
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user