From c2bd0a0e589eecf56e4127d7db3909be23e331e9 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Sat, 3 Jan 2026 14:38:07 -0600 Subject: [PATCH] revert otherworldbarrierdistortion shader to correct version --- Effects/OtherworldBarrierDistortion.fx | 12 ++---------- Effects/OtherworldBarrierDistortion.xnb | Bin 3144 -> 2960 bytes 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Effects/OtherworldBarrierDistortion.fx b/Effects/OtherworldBarrierDistortion.fx index ead46908fe..9f854ad59a 100644 --- a/Effects/OtherworldBarrierDistortion.fx +++ b/Effects/OtherworldBarrierDistortion.fx @@ -17,7 +17,7 @@ float4 uShaderSpecificData; float4 AdjustPixelPosition(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Drift to offset the noisemap. X multiplier is a prime number to ensure the "loop time" of this is very high, it takes 100 uTime to return to the original state - float2 drift = float2(uTime * uRotation, uTime * uSaturation); + float2 drift = float2(0.23 * uTime * uSaturation, uTime * uSaturation); //This is the uv distance from the center of the texture float2 uvOffsetFromCenter = (coords - 0.5); @@ -38,16 +38,8 @@ float4 AdjustPixelPosition(float4 sampleColor : COLOR0, float2 coords : TEXCOORD // I would like to be able to draw directly additive, but I have been unable to make that work and this has worked well. float4 distortedColor = tex2D(uImage0, modifiedCoords); distortedColor.a = distortedColor.x; - distortedColor *= uDirection; - - float4 drawColor = sampleColor; - float4 borderColor = sampleColor; - borderColor.rgb = uSecondaryColor; - - if(dist > 0.4) - drawColor = lerp(sampleColor, borderColor, (dist - 0.4) / 0.1); - return distortedColor * drawColor * mask; + return distortedColor * sampleColor * mask; } diff --git a/Effects/OtherworldBarrierDistortion.xnb b/Effects/OtherworldBarrierDistortion.xnb index ad3fa234393f4b5ba986d1ea6147beefd4e2fa32..d933cce2e5568b4d13beb5eac1f09115fe0ac6bf 100644 GIT binary patch delta 874 zcmb7CF^CgE6#X;1lijQbiv&4O1BqIQAZR5b@eXq;21Ih^0zm{La>aFbjc4Zy7J^N} zw^Uj1w8+7sU?U=4sfA!?afm1>EYn(;@%`CNY;64ScK&~V{`-Gt=EMHpY}mO{-!Q7T zryoAnKciPKp86}73Phx>9orf$E}yHH5xxb4^RP$^tG>pk0|=)`Qx~h)8sLFZRG>SK zA$ovS0}6NqZ1QhY(_35o%^c$Eg)^-UYF@q2Qo3_-Y)?+xK9mx0QtH|&s*2QkU?SIq z-vy+tc5TVE?eejp!XvYn8$nAcei9s2<@K}CmuG9A z7BaO_zGe}B4ys%ZXIA{YSCFronyHK~HsQpVu|jcRQX?3_Vwkl=OGHLfoPvITV|!3L zb#43IkK3o`h4=VoID6dBvOBx+M;RsAjT<|XHQ?|6Iy?_Utfztrj z6AeuvVnUtm;kYrp51;N~uJshJ7C#t+7$h1Zas+?5wi6OAE7aK6mcoDTkvei(a#)!b M8l%7H4->h&KS4aHEC2ui delta 1037 zcmZWn&ubGw6n?Y2vpb0`QHsQ3AW;!76>p*tTas9@AY$7DLN8L<9*WXHNEA=mK#v|$ z2Ejv-J&7ctD0r|)wTB)Q;$KiNO2o4_y>$KFY?>C`TSsZyuY5vBvWXyN7>59r?9^t`ajw+_PWaE|v}8W{64a|p`3gIX*mXLGQwse{CiQbSrT5&Tu=TiiRu{!dbr4!qxHD7KT`x24 zpa6e7uQD1DVj7W?bAIwmugCI%D3jB^$_hvCs3j?>9Y}pKcIC1|rNDs&3J&hh=j#H9YIgFMz}QNp)i3)K(s+Hg^}iN=z^gz%4SunSP>HE_f@h@mET#Z7V;?6z-M zfYT9H8sP09%2N#hrGFB`VbD<`4Y5O#W{d$zn><4rMGa}26l`J{G!kZ&9>@R#VP0>k z=~1I(67b5