Skip to content

Commit

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

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

## Solution

- update the shader
  • Loading branch information
NiklasEi committed Jul 17, 2022
1 parent d4f8f88 commit ad18ca5
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 ad18ca5

Please sign in to comment.