bevy
bevy copied to clipboard
Replace `FULLSCREEN_SHADER_HANDLE` with a `FullscreenShader` resource.
Objective
- Related to #19024.
Solution
- Remove the
FULLSCREEN_SHADER_HANDLEweak_handlewith a resource holding the shader handle.- This also changes us from using
load_internal_assettoembedded_asset/load_embedded_asset.
- This also changes us from using
- All uses have been migrated to clone the
FullscreenShaderresource and use itsto_vertex_statemethod.
Testing
anti_aliasingexample still works.bloom_3dexample still works.
Needs a migration guide imo, since lots of users use this.
@JMS55 I already added a migration guide for this? Is there more to do there?
Oh whoops, I missed that.
Might be nice to add an example of the before/after changes needed, though.