Skip to content

Commit

Permalink
Fix personal shields reflecting above the water surface
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 12, 2024
1 parent 8f68350 commit b2d7345
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit b2d7345

Please sign in to comment.