From 1fd0e76704ffe8bf32d5cf86ea2966b3e28e5743 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Wed, 19 May 2021 19:01:49 +0300 Subject: [PATCH] Fix `red_robot` after latest changes for varyings in shader language --- enemies/red_robot/laser/LaserShader.shader | 4 ---- 1 file changed, 4 deletions(-) diff --git a/enemies/red_robot/laser/LaserShader.shader b/enemies/red_robot/laser/LaserShader.shader index 245426c8..6f4a8197 100644 --- a/enemies/red_robot/laser/LaserShader.shader +++ b/enemies/red_robot/laser/LaserShader.shader @@ -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 @@ -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; }