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:
parent
bc73c5b1ec
commit
111e38ef25
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue