Skip to content

Commit 3c66d09

Browse files
committed
Fix shader (#219)
1 parent be43ef1 commit 3c66d09

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/render/shape_material.wgsl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#import bevy_sprite::mesh2d_types Mesh2d
2+
#import bevy_sprite::mesh2d_view_bindings
3+
#import bevy_sprite::mesh2d_vertex_output MeshVertexOutput
4+
5+
@group(1) @binding(1)
6+
var texture: texture_2d<f32>;
7+
@group(1) @binding(2)
8+
var texture_sampler: sampler;
9+
@group(2) @binding(0)
10+
var<uniform> mesh: Mesh2d;
11+
12+
@fragment
13+
fn fragment(in: MeshVertexOutput) -> @location(0) vec4<f32> {
14+
return in.color;
15+
}

0 commit comments

Comments
 (0)