bevy/crates/bevy_pbr/src/render
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
..
depth.wgsl Mesh Skinning. Attempt #3 (#4238) 2022-03-29 18:31:13 +00:00
light.rs Do not create nor execute render passes which have no phase items to draw (#4643) 2022-05-02 20:22:30 +00:00
mesh.rs Add support for vertex colors (#4528) 2022-05-05 00:46:32 +00:00
mesh.wgsl Add support for vertex colors (#4528) 2022-05-05 00:46:32 +00:00
mesh_struct.wgsl Mesh Skinning. Attempt #3 (#4238) 2022-03-29 18:31:13 +00:00
mesh_view_bind_group.wgsl Use storage buffers for clustered forward point lights (#3989) 2022-04-07 16:16:35 +00:00
mod.rs Materials and MaterialPlugin (#3428) 2021-12-25 21:45:43 +00:00
pbr.wgsl Add support for vertex colors (#4528) 2022-05-05 00:46:32 +00:00
skinning.wgsl Mesh Skinning. Attempt #3 (#4238) 2022-03-29 18:31:13 +00:00
wireframe.wgsl Fix animation: shadow and wireframe support (#4367) 2022-03-30 19:56:16 +00:00