mirror of
https://github.com/bevyengine/bevy
synced 2025-01-20 00:55:10 +00:00
12 lines
271 B
WebGPU Shading Language
12 lines
271 B
WebGPU Shading Language
|
#import bevy_sprite::mesh2d_vertex_output::VertexOutput
|
||
|
|
||
|
struct WireframeMaterial {
|
||
|
color: vec4<f32>,
|
||
|
};
|
||
|
|
||
|
@group(2) @binding(0) var<uniform> material: WireframeMaterial;
|
||
|
@fragment
|
||
|
fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
|
||
|
return material.color;
|
||
|
}
|