From 50d3c980687387eb2569d149802370fd77b44fe0 Mon Sep 17 00:00:00 2001 From: Niklas Eicker Date: Sun, 17 Jul 2022 15:02:57 +0000 Subject: [PATCH] Fix line material shader (#5348) # Objective - The line shader missed the wgpu 0.13 update (#5168) and does not work in it's current state ## Solution - update the shader --- assets/shaders/line_material.wgsl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/shaders/line_material.wgsl b/assets/shaders/line_material.wgsl index 02f278f60f058b..e47ffe6e16acb3 100644 --- a/assets/shaders/line_material.wgsl +++ b/assets/shaders/line_material.wgsl @@ -1,11 +1,13 @@ struct LineMaterial { - color: vec4; + color: vec4, }; -[[group(1), binding(0)]] +@group(1) @binding(0) var material: LineMaterial; -[[stage(fragment)]] -fn fragment() -> [[location(0)]] vec4 { +@fragment +fn fragment( + #import bevy_pbr::mesh_vertex_output +) -> @location(0) vec4 { return material.color; -} \ No newline at end of file +}