bevy/crates/bevy_pbr/src/render/wireframe.wgsl

11 lines
271 B
WebGPU Shading Language
Raw Normal View History

#import bevy_pbr::mesh_vertex_output MeshVertexOutput
struct WireframeMaterial {
color: vec4<f32>,
};
@group(1) @binding(0)
var<uniform> material: WireframeMaterial;
@fragment
fn fragment(in: MeshVertexOutput) -> @location(0) vec4<f32> {
return material.color;
}