Skip to content

Commit

Permalink
Merge pull request #103 from Chaosus/fix_redrobot
Browse files Browse the repository at this point in the history
Fix `red_robot` after latest changes for varyings in shader language
  • Loading branch information
akien-mga authored May 19, 2021
2 parents a53108a + 1fd0e76 commit 5e2f502
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions enemies/red_robot/laser/LaserShader.shader
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ uniform float clip = 4.0;

uniform vec4 color1 : hint_color = vec4(0.0, 0.0, 1.0, 1.0);

// Z coordinate of the vertex, in local space.
varying float z_local_coordinates;

void vertex(){
// Because of how the UVs are laid out, the UVs at the right-most place
// are at the end of the beam. We use that to decide wether or not to
Expand All @@ -26,7 +23,6 @@ void vertex(){
float original_z = VERTEX.z;
VERTEX.z = mix(VERTEX.z, -clip, should_displace_vertex);
UV.x *= VERTEX.z / original_z;
z_local_coordinates = VERTEX.z;
VERTEX.xy *= traversal_scale;
}

Expand Down

0 comments on commit 5e2f502

Please sign in to comment.