-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate motion blur, TAA, SSAO, and SSR to required components #15572
Migrate motion blur, TAA, SSAO, and SSR to required components #15572
Conversation
type TaaComponents = ( | ||
TemporalAntiAliasing, | ||
TemporalJitter, | ||
DepthPrepass, | ||
MotionVectorPrepass, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kinda scuffed, but component removal is a bit more annoying without bundles 🤔
(of course I could also make this an actual Bundle
like TemporalAntiAliasBundle
too, but the properties aren't needed in this case)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does seem like we're missing a camera.remove_with_requires::<TemporalAntiAliasing>()
function in bevy_ecs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracked in #15580.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely needs some form of remove_with_requires
, but that shouldn't hold up progress here.
…ngine#15572) # Objective Again, a step forward in the migration to required components: a bunch of camera rendering cormponents! Note that this does not include the camera components themselves yet, because the naming and API for `Camera` hasn't been fully decided yet. ## Solution As per the [selected proposals](https://hackmd.io/@bevy/required_components/%2FpiqD9GOdSFKZZGzzh3C7Uw): - Deprecate `MotionBlurBundle` in favor of the `MotionBlur` component - Deprecate `TemporalAntiAliasBundle` in favor of the `TemporalAntiAliasing` component - Deprecate `ScreenSpaceAmbientOcclusionBundle` in favor of the `ScreenSpaceAmbientOcclusion` component - Deprecate `ScreenSpaceReflectionsBundle` in favor of the `ScreenSpaceReflections` component --- ## Migration Guide `MotionBlurBundle`, `TemporalAntiAliasBundle`, `ScreenSpaceAmbientOcclusionBundle`, and `ScreenSpaceReflectionsBundle` have been deprecated in favor of the `MotionBlur`, `TemporalAntiAliasing`, `ScreenSpaceAmbientOcclusion`, and `ScreenSpaceReflections` components instead. Inserting them will now also insert the other components required by them automatically.
Objective
Again, a step forward in the migration to required components: a bunch of camera rendering cormponents!
Note that this does not include the camera components themselves yet, because the naming and API for
Camera
hasn't been fully decided yet.Solution
As per the selected proposals:
MotionBlurBundle
in favor of theMotionBlur
componentTemporalAntiAliasBundle
in favor of theTemporalAntiAliasing
componentScreenSpaceAmbientOcclusionBundle
in favor of theScreenSpaceAmbientOcclusion
componentScreenSpaceReflectionsBundle
in favor of theScreenSpaceReflections
componentMigration Guide
MotionBlurBundle
,TemporalAntiAliasBundle
,ScreenSpaceAmbientOcclusionBundle
, andScreenSpaceReflectionsBundle
have been deprecated in favor of theMotionBlur
,TemporalAntiAliasing
,ScreenSpaceAmbientOcclusion
, andScreenSpaceReflections
components instead. Inserting them will now also insert the other components required by them automatically.