bevyengine / bevyengine/bevy

Color's representation as a series of 4 floats is inconsistent

Open
#12,186 1 comment 0 reactions 0 assignees View on GitHub
A-Rendering C-Code-Quality
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

In some cases (like Gizmos) this is stored as an `[f32; 4]`. In other places, like `StandardMaterialUniform`, this is a `Vec4`. I think a `[f32;4]` is slightly more clear, but I really don't care which one we standardize on.

Contributor guide

Open the contributing guide

Research direction

Start by locating the color representations used by Gizmos and StandardMaterialUniform, then trace other four-float color representations across the relevant rendering code. Decide which representation should be standardized and update the affected uses consistently; done means the inconsistent forms have been resolved and the relevant checks still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.