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. 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;