diff options
| author | Sébastien Crozet <developer@crozet.re> | 2023-11-04 18:32:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-04 18:32:55 +0100 |
| commit | e9ea2ca10b3058a6ac2d7f4b79d351ef18ad3c06 (patch) | |
| tree | 8a64ad550e9b99158bdbb26a260e9ab27ffd4be6 /src_testbed/lines/debuglines2d.wgsl | |
| parent | dbc540d788a3c46d85e07d47e7028d67aab04dbf (diff) | |
| parent | 1886c6f362139d780596baa6a0d6208a2c49212f (diff) | |
| download | rapier-e9ea2ca10b3058a6ac2d7f4b79d351ef18ad3c06.tar.gz rapier-e9ea2ca10b3058a6ac2d7f4b79d351ef18ad3c06.tar.bz2 rapier-e9ea2ca10b3058a6ac2d7f4b79d351ef18ad3c06.zip | |
Merge pull request #540 from johnny-smitherson/bevy-0.11
update bevy 0.11 - fix compile errors
Diffstat (limited to 'src_testbed/lines/debuglines2d.wgsl')
| -rw-r--r-- | src_testbed/lines/debuglines2d.wgsl | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src_testbed/lines/debuglines2d.wgsl b/src_testbed/lines/debuglines2d.wgsl deleted file mode 100644 index b722d8a..0000000 --- a/src_testbed/lines/debuglines2d.wgsl +++ /dev/null @@ -1,32 +0,0 @@ -#import bevy_sprite::mesh2d_view_bind_group -[[group(0), binding(0)]] -var<uniform> view: View; - -struct Vertex { - //[[location(0)]] color: vec4<f32>; - [[location(0)]] place: vec3<f32>; - [[location(1)]] color: u32; -}; - -struct VertexOutput { - [[builtin(position)]] clip_position: vec4<f32>; - [[location(0)]] color: vec4<f32>; -}; - -[[stage(vertex)]] -fn vertex(vertex: Vertex) -> VertexOutput { - var out: VertexOutput; - out.clip_position = view.view_proj * vec4<f32>(vertex.place, 1.0); - var r = f32(vertex.color & 255u) / 255.0; - var g = f32(vertex.color >> 8u & 255u) / 255.0; - var b = f32(vertex.color >> 16u & 255u) / 255.0; - var a = f32(vertex.color >> 24u & 255u) / 255.0; - out.color = vec4<f32>(r, g, b, a); - - return out; -} - -[[stage(fragment)]] -fn fragment(in: VertexOutput) -> [[location(0)]] vec4<f32> { - return in.color; -} |
