bevy/crates/bevy_render
TimJentzsch d67fbd5e90
Add helper function to determine if color is transparent (#10310)
# Objective

- We need to check multiple times if a color is fully transparent, e.g.
for performance optimizations.
- Make code more readable.
- Reduce code duplication, to simplify making changes if needed (e.g. if
we need to take floating point weirdness into account later on).

## Solution

- Introduce a new `Color::is_fully_transparent` helper function to
determine if the alpha of a color is 0.
- Use the helper function in our UI rendering code.

---

## Changelog

- Added `Color::is_fully_transparent` helper function.

---------

Co-authored-by: François <mockersf@gmail.com>
2023-10-31 15:00:49 +00:00
..
macros allow extensions to StandardMaterial (#7820) 2023-10-17 21:28:08 +00:00
src Add helper function to determine if color is transparent (#10310) 2023-10-31 15:00:49 +00:00
Cargo.toml update shader imports (#10180) 2023-10-21 11:51:58 +00:00