bevy/crates/bevy_sprite/src/mesh2d
Torstein Grindvik 55d126cab9 Add globals struct to mesh2d (#6222)
See commit message.
I noticed I couldn't use `globals.time` when using `Material2d`.

I copied the solution from 8073362039 , and now `Material2d` works for me.

Perhaps some of these struct definitions could be shared in the future, but for now I've just copy pasted it (it looked like the `View` struct was done that way).

Ping @IceSentry , I saw a comment on the linked commit that you intended to do this work at some point in the future.
2022-10-10 19:23:43 +00:00
..
color_material.rs Support AsBindGroup for 2d materials as well (#5312) 2022-07-16 00:20:04 +00:00
color_material.wgsl Make vertex colors work without textures in bevy_sprite (#5685) 2022-08-16 20:46:45 +00:00
material.rs Exclusive Systems Now Implement System. Flexible Exclusive System Params (#6083) 2022-09-26 23:57:07 +00:00
mesh2d_bindings.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh2d_functions.wgsl Add reusable shader functions for transforming position/normal/tangent (#4901) 2022-06-14 00:32:33 +00:00
mesh2d_types.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh2d_vertex_output.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh2d_view_bindings.wgsl Add globals struct to mesh2d (#6222) 2022-10-10 19:23:43 +00:00
mesh2d_view_types.wgsl Add globals struct to mesh2d (#6222) 2022-10-10 19:23:43 +00:00
mesh2d.wgsl remove mandatory mesh attributes (#6127) 2022-10-10 17:58:15 +00:00
mesh.rs Add globals struct to mesh2d (#6222) 2022-10-10 19:23:43 +00:00
mod.rs Add 2d meshes and materials (#3460) 2022-01-08 01:29:08 +00:00