bevy/crates/bevy_pbr/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
..
render Add support for vertex colors (#4528) 2022-05-05 00:46:32 +00:00
alpha.rs add #[reflect(Default)] to create default value for reflected types (#3733) 2022-05-03 19:20:13 +00:00
bundle.rs add Visibility for lights (#3958) 2022-03-05 03:23:01 +00:00
lib.rs Converted exclusive systems to parallel systems wherever possible (#2774) 2022-04-25 14:32:56 +00:00
light.rs add #[reflect(Default)] to create default value for reflected types (#3733) 2022-05-03 19:20:13 +00:00
material.rs Filter material handles on extraction (#4178) 2022-05-03 18:28:04 +00:00
pbr_material.rs set alpha_mode based on alpha value (#4658) 2022-05-04 22:10:20 +00:00
wireframe.rs Make Wireframe respect visible entities (#4660) 2022-05-04 22:28:16 +00:00