bevy/crates/bevy_pbr/src/light_probe
Joona Aalto bc352561c9
Migrate reflection probes to required components (#15737)
# Objective

Getting closer to the end! Another part of the required components
migration: reflection probes.

## Solution

As per the [proposal added by
Cart](https://hackmd.io/@bevy/required_components/%2FNmpIh0tGSiayGlswbfcEzw)
(Proposal 2), make `LightProbe` require `Transform` and `Visibility`,
and deprecate `ReflectionProbeBundle`.

Note that this proposal wasn't officially blessed yet, but it is the
only existing one that really works, so I implemented it here for
consideration.

## Testing

I ran the reflection probe example, and it appears to work.

---

## Migration Guide

`ReflectionProbeBundle` has been deprecated in favor of inserting the
`LightProbe` and `EnvironmentMapLight` components directly. Inserting
them will now automatically insert `Transform` and `Visibility`
components.

---------

Co-authored-by: Tim Blackbird <justthecooldude@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2024-10-08 23:59:27 +00:00
..
environment_map.rs Migrate reflection probes to required components (#15737) 2024-10-08 23:59:27 +00:00
environment_map.wgsl Add support for environment map transformation (#14290) 2024-07-19 15:00:50 +00:00
irradiance_volume.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
irradiance_volume.wgsl Normalise matrix naming (#13489) 2024-06-03 16:56:53 +00:00
light_probe.wgsl Normalise matrix naming (#13489) 2024-06-03 16:56:53 +00:00
mod.rs Migrate reflection probes to required components (#15737) 2024-10-08 23:59:27 +00:00