bevy/examples/2d
Jonas Wagner 110831150e Make vertex colors work without textures in bevy_sprite (#5685)
# Objective

This PR changes it possible to use vertex colors without a texture using the bevy_sprite ColorMaterial.

Fixes #5679 

## Solution

- Made multiplication of the output color independent of the COLOR_MATERIAL_FLAGS_TEXTURE_BIT bit
- Extended mesh2d_vertex_color_texture example to show off both vertex colors and tinting

Not sure if extending the existing example was the right call but it seems to be reasonable to me.

I couldn't find any tests for the shaders and I think adding shader testing would be beyond the scope of this PR. So no tests in this PR. 😬 

Co-authored-by: Jonas Wagner <jonas@29a.ch>
2022-08-16 20:46:45 +00:00
..
mesh2d.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
mesh2d_manual.rs fix typos in examples (#5711) 2022-08-16 20:28:31 +00:00
mesh2d_vertex_color_texture.rs Make vertex colors work without textures in bevy_sprite (#5685) 2022-08-16 20:46:45 +00:00
move_sprite.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
rotation.rs Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
shapes.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
sprite.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
sprite_flipping.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
sprite_sheet.rs Remove unnecessary use from examples (#5583) 2022-08-06 01:19:57 +00:00
text2d.rs Improve ergonomics and reduce boilerplate around creating text elements. (#5343) 2022-07-20 14:14:29 +00:00
texture_atlas.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
transparency_2d.rs use the default() method in examples instead of Default::default() (#4952) 2022-06-07 02:16:47 +00:00