From 71368d4ebe75f6339837ba6d11999cae557243b2 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 02f278f60f..e47ffe6e16 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 +}