Skip to content

Commit

Permalink
Fix line material shader (bevyengine#5348)
Browse files Browse the repository at this point in the history
# Objective

- The line shader missed the wgpu 0.13 update (bevyengine#5168) and does not work in it's current state

## Solution

- update the shader
  • Loading branch information
NiklasEi authored and james7132 committed Oct 28, 2022
1 parent 8559bfc commit 50d3c98
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions assets/shaders/line_material.wgsl
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
struct LineMaterial {
color: vec4<f32>;
color: vec4<f32>,
};

[[group(1), binding(0)]]
@group(1) @binding(0)
var<uniform> material: LineMaterial;

[[stage(fragment)]]
fn fragment() -> [[location(0)]] vec4<f32> {
@fragment
fn fragment(
#import bevy_pbr::mesh_vertex_output
) -> @location(0) vec4<f32> {
return material.color;
}
}

0 comments on commit 50d3c98

Please sign in to comment.