bevy/crates/bevy_sprite/src
Dusty DeWeese 82d849d3dc Add support for vertex colors (#4528)
# Objective

Add support for vertex colors

## Solution

This change is modeled after how vertex tangents are handled, so the shader is conditionally compiled with vertex color support if the mesh has the corresponding attribute set.

Vertex colors are multiplied by the base color. I'm not sure if this is the best for all cases, but may be useful for modifying vertex colors without creating a new mesh.

I chose `VertexFormat::Float32x4`, but I'd prefer 16-bit floats if/when support is added.

## Changelog

### Added
- Vertex colors can be specified using the `Mesh::ATTRIBUTE_COLOR` mesh attribute.
2022-05-05 00:46:32 +00:00
..
mesh2d Add support for vertex colors (#4528) 2022-05-05 00:46:32 +00:00
render Move float_ord from bevy_core to bevy_utils (#4189) 2022-04-27 18:02:05 +00:00
bundle.rs
collide_aabb.rs Add the Inside version to the Collision enum (#2489) 2022-02-01 22:40:25 +00:00
dynamic_texture_atlas_builder.rs
lib.rs impl Reflect and Debug for Mesh2dHandle (#4368) 2022-03-30 19:56:17 +00:00
rect.rs
sprite.rs can specify an anchor for a sprite (#3463) 2022-04-04 22:09:59 +00:00
texture_atlas_builder.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
texture_atlas.rs can specify an anchor for a sprite (#3463) 2022-04-04 22:09:59 +00:00