From b2d7345ee7a9356b837dbdc0bed650a265257261 Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:10:44 -0800 Subject: [PATCH 1/2] Fix personal shields reflecting above the water surface --- effects/mesh.fx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/effects/mesh.fx b/effects/mesh.fx index c3c70c00a9..0d34c5bb18 100644 --- a/effects/mesh.fx +++ b/effects/mesh.fx @@ -4085,6 +4085,8 @@ float4 CybranShieldImpactPS( SHIELDIMPACT_VERTEX vertex, uniform float fadeTime, float4 PhaseShieldPS( VERTEXNORMAL_VERTEX vertex ) : COLOR { + if (1 == mirrored) clip(vertex.depth.x); + float2 tc1 = vertex.texcoord0.xy * 0.5; tc1.x += 0.005 * vertex.material.x; tc1.y += 0.02 * vertex.material.x; @@ -4108,6 +4110,8 @@ float4 PhaseShieldPS( VERTEXNORMAL_VERTEX vertex ) : COLOR float4 AeonPhaseShieldPS( VERTEXNORMAL_VERTEX vertex ) : COLOR { + if (1 == mirrored) clip(vertex.depth.x); + float2 tc1 = vertex.texcoord0.xy * 2; tc1.x += 0.005 * vertex.material.x; tc1.y += 0.02 * vertex.material.x; @@ -4131,6 +4135,8 @@ float4 AeonPhaseShieldPS( VERTEXNORMAL_VERTEX vertex ) : COLOR float4 CybranPhaseShieldPS( VERTEXNORMAL_VERTEX vertex ) : COLOR { + if (1 == mirrored) clip(vertex.depth.x); + float2 tc1 = vertex.texcoord0.xy * 2; tc1.x += 0.1 * vertex.material.x; tc1.y += 0.5 * vertex.material.x; @@ -4156,6 +4162,8 @@ float4 CybranPhaseShieldPS( VERTEXNORMAL_VERTEX vertex ) : COLOR float4 SeraphimPhaseShieldPS( VERTEXNORMAL_VERTEX vertex ) : COLOR { + if (1 == mirrored) clip(vertex.depth.x); + float2 tc1 = vertex.texcoord0.xy * 0.5; tc1.x += 0.005 * vertex.material.x; tc1.y += 0.02 * vertex.material.x; From 78526d78c0c5b1aa0941711c6c8dd8b36f6403ee Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:55:28 -0800 Subject: [PATCH 2/2] Create fix.6583.md --- changelog/snippets/fix.6583.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/snippets/fix.6583.md diff --git a/changelog/snippets/fix.6583.md b/changelog/snippets/fix.6583.md new file mode 100644 index 0000000000..81f2881fad --- /dev/null +++ b/changelog/snippets/fix.6583.md @@ -0,0 +1 @@ +- (#6583) Fix personal shields reflecting above the water surface.