bevy/crates/bevy_sprite/src/mesh2d/wireframe2d.wgsl
charlotte e799625ea5
Add binned 2d/3d Wireframe render phase (#18587)
# Objective

Fixes #16896
Fixes #17737

## Solution

Adds a new render phase, including all the new cold specialization
patterns, for wireframes. There's a *lot* of regrettable duplication
here between 3d/2d.

## Testing

All the examples.

## Migration Guide
- `WireframePlugin` must now be created with
`WireframePlugin::default()`.
2025-04-09 21:34:53 +00:00

13 lines
258 B
WebGPU Shading Language

#import bevy_sprite::mesh2d_vertex_output::VertexOutput
struct PushConstants {
color: vec4<f32>
}
var<push_constant> push_constants: PushConstants;
@fragment
fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
return push_constants.color;
}