diff --git a/assets/voxygen/shaders/rope-frag.glsl b/assets/voxygen/shaders/rope-frag.glsl index 65779f060d..70acd9950d 100644 --- a/assets/voxygen/shaders/rope-frag.glsl +++ b/assets/voxygen/shaders/rope-frag.glsl @@ -1,4 +1,4 @@ -#version 430 core +#version 440 core #define FIGURE_SHADER @@ -56,6 +56,7 @@ layout (std140, set = 2, binding = 0) uniform u_locals { vec4 pos_a; vec4 pos_b; + float rope_length; }; layout(location = 0) out vec4 tgt_color; diff --git a/assets/voxygen/shaders/rope-vert.glsl b/assets/voxygen/shaders/rope-vert.glsl index 01859636fe..dd22570562 100644 --- a/assets/voxygen/shaders/rope-vert.glsl +++ b/assets/voxygen/shaders/rope-vert.glsl @@ -1,4 +1,4 @@ -#version 430 core +#version 440 core #include diff --git a/voxygen/src/render/pipelines/rope.rs b/voxygen/src/render/pipelines/rope.rs index d8081ab4ca..c01602fd48 100644 --- a/voxygen/src/render/pipelines/rope.rs +++ b/voxygen/src/render/pipelines/rope.rs @@ -9,6 +9,7 @@ pub struct Locals { pos_a: [f32; 4], pos_b: [f32; 4], rope_length: f32, + _padding: [f32; 3], } impl Locals { @@ -17,6 +18,7 @@ impl Locals { pos_a: pos_a.with_w(0.0).into_array(), pos_b: pos_b.with_w(0.0).into_array(), rope_length, + _padding: [0.0; 3], } } }