bevy/examples/2d
Alessandro Re 6ce57c85d6 Example on how to draw using custom mesh and shader (#1565)
I was looking into "lower level" rendering and I saw no example on how to do that. Yet, I think it's something relevant to show, so I set up a simple example on how to do that. I hope it's welcome.

I'm not confident about the code and a review is definitely nice to have, especially because there are a few things that are not great.
Specifically, I think it would be nice to see how to render with a completely custom set of attributes (position and color, in this case), but I couldn't manage to get it working without normals and uv.

It makes sense if bevy Meshes need these two attributes, but I'm not sure about it.

Co-authored-by: Alessandro Re <ale@ale-re.net>
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-04-12 19:47:12 +00:00
..
contributors.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
many_sprites.rs Example for 2D Frustum Culling (#1503) 2021-03-25 01:46:22 +00:00
mesh.rs Example on how to draw using custom mesh and shader (#1565) 2021-04-12 19:47:12 +00:00
sprite.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
sprite_flipping.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
sprite_sheet.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
text2d.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
texture_atlas.rs Change State::*_next to *_replace, add proper next (#1676) 2021-03-25 03:28:40 +00:00