bevy/crates/bevy_pbr/src
Matty 328008f904
Move AlphaMode into bevy_render (#12012)
# Objective

- Closes #11985

## Solution

- alpha.rs has been moved from bevy_pbr into bevy_render; bevy_pbr and
bevy_gltf now access `AlphaMode` through bevy_render.

---

## Migration Guide

In the present implementation, external consumers of `AlphaMode` will
have to access it through bevy_render rather than through bevy_pbr,
changing their import from `bevy_pbr::AlphaMode` to
`bevy_render::alpha::AlphaMode` (or the corresponding glob import from
`bevy_pbr::prelude::*` to `bevy_render::prelude::*`).

## Uncertainties

Some remaining things from this that I am uncertain about:
- Here, the `app.register_type<AlphaMode>()` call has been moved from
`PbrPlugin` to `RenderPlugin`; I'm not sure if this is quite right, and
I was unable to find any direct relationship between `PbrPlugin` and
`RenderPlugin`.
- `AlphaMode` was placed in the prelude of bevy_render. I'm not certain
that this is actually appropriate.
- bevy_pbr does not re-export `AlphaMode`, which makes this a breaking
change for external consumers.

Any of these things could be easily changed; I'm just not confident that
I necessarily adopted the right approach in these (known) ways since
this codebase and ecosystem is quite new to me.
2024-02-21 19:34:10 +00:00
..
deferred Rename Core Render Graph Labels (#11882) 2024-02-15 23:15:16 +00:00
light_probe Disable irradiance volumes on WebGL and WebGPU. (#11909) 2024-02-17 01:49:46 +00:00
lightmap Move EntityHash related types into bevy_ecs (#11498) 2024-02-12 15:02:24 +00:00
prepass Stop extracting mesh entities to the render world. (#11803) 2024-02-10 10:46:10 +00:00
render Add support for KHR_texture_transform (#11904) 2024-02-21 01:11:28 +00:00
ssao Rename Core Render Graph Labels (#11882) 2024-02-15 23:15:16 +00:00
bundle.rs Move EntityHash related types into bevy_ecs (#11498) 2024-02-12 15:02:24 +00:00
extended_material.rs Reorder impl to be the same as the trait (#11076) 2023-12-24 17:43:55 +00:00
fog.rs Missing registrations (#11736) 2024-02-06 16:33:17 +00:00
lib.rs Move AlphaMode into bevy_render (#12012) 2024-02-21 19:34:10 +00:00
light.rs New Exposure and Lighting Defaults (and calibrate examples) (#11868) 2024-02-15 20:42:48 +00:00
material.rs Allow Mesh-related queue phase systems to parallelize (#11804) 2024-02-20 00:12:41 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Add support for KHR_texture_transform (#11904) 2024-02-21 01:11:28 +00:00
wireframe.rs Fix global wireframe behavior not being applied on new meshes (#11792) 2024-02-12 19:48:45 +00:00