Skip to content

Commit 51ec03b

Browse files
committed
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
1 parent d4f8f88 commit 51ec03b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

assets/shaders/line_material.wgsl

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
struct LineMaterial {
2-
color: vec4<f32>;
2+
color: vec4<f32>,
33
};
44

5-
[[group(1), binding(0)]]
5+
@group(1) @binding(0)
66
var<uniform> material: LineMaterial;
77

8-
[[stage(fragment)]]
9-
fn fragment() -> [[location(0)]] vec4<f32> {
8+
@fragment
9+
fn fragment(
10+
#import bevy_pbr::mesh_vertex_output
11+
) -> @location(0) vec4<f32> {
1012
return material.color;
11-
}
13+
}

0 commit comments

Comments
 (0)