Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix personal shields reflecting above the water surface #6583

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/snippets/fix.6583.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- (#6583) Fix personal shields reflecting above the water surface.
8 changes: 8 additions & 0 deletions effects/mesh.fx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
Loading