From a2f1eb2dc40cf4dfbb87c9788e299a8553ce83b8 Mon Sep 17 00:00:00 2001 From: Niklas Eicker Date: Sun, 17 Jul 2022 08:45:08 +0200 Subject: [PATCH] Fix line material 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 02f278f60f058..e47ffe6e16acb 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 +}