mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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
This commit is contained in:
parent
d65e01b768
commit
71368d4ebe
1 changed files with 7 additions and 5 deletions
|
@ -1,11 +1,13 @@
|
||||||
struct LineMaterial {
|
struct LineMaterial {
|
||||||
color: vec4<f32>;
|
color: vec4<f32>,
|
||||||
};
|
};
|
||||||
|
|
||||||
[[group(1), binding(0)]]
|
@group(1) @binding(0)
|
||||||
var<uniform> material: LineMaterial;
|
var<uniform> material: LineMaterial;
|
||||||
|
|
||||||
[[stage(fragment)]]
|
@fragment
|
||||||
fn fragment() -> [[location(0)]] vec4<f32> {
|
fn fragment(
|
||||||
|
#import bevy_pbr::mesh_vertex_output
|
||||||
|
) -> @location(0) vec4<f32> {
|
||||||
return material.color;
|
return material.color;
|
||||||
}
|
}
|
Loading…
Reference in a new issue