bevy/crates/bevy_render/src/texture
charlotte 43204447e8
Allow mix of hdr and non-hdr cameras to same render target (#13419)
Changes:
- Track whether an output texture has been written to yet and only clear
it on the first write.
- Use `ClearColorConfig` on `CameraOutputMode` instead of a raw
`LoadOp`.
- Track whether a output texture has been seen when specializing the
upscaling pipeline and use alpha blending for extra cameras rendering to
that texture that do not specify an explicit blend mode.

Fixes #6754

## Testing

Tested against provided test case in issue:

![image](https://github.com/bevyengine/bevy/assets/10366310/d066f069-87fb-4249-a4d9-b6cb1751971b)

---

## Changelog

- Allow cameras rendering to the same output texture with mixed hdr to
work correctly.

## Migration Guide

- - Change `CameraOutputMode` to use `ClearColorConfig` instead of
`LoadOp`.
2024-06-06 23:12:32 +02:00
..
basis.rs
compressed_image_saver.rs Use async-fn in traits rather than BoxedFuture (#12550) 2024-03-18 17:56:57 +00:00
dds.rs Fixed a bug where skybox ddsfile would crash from wgpu (#12894) 2024-04-08 17:16:25 +00:00
exr_texture_loader.rs Use async-fn in traits rather than BoxedFuture (#12550) 2024-03-18 17:56:57 +00:00
fallback_image.rs Prefer UVec2 when working with texture dimensions (#11698) 2024-02-25 15:23:04 +00:00
hdr_texture_loader.rs Update image requirement from 0.24 to 0.25 (#12458) 2024-03-29 06:40:09 +00:00
image_loader.rs Add ImageFormatSetting::Guess to image loader (#13575) 2024-05-30 23:57:22 +00:00
image_texture_conversion.rs Remove redundant imports (#12817) 2024-04-01 19:59:08 +00:00
image.rs Extra info on Image debug assertions (#13628) 2024-06-03 13:35:33 +00:00
ktx2.rs Fixed crash when transcoding one- or two-channel KTX2 textures (#12629) 2024-04-14 14:40:10 +00:00
mod.rs Consolidate Render(Ui)Materials(2d) into RenderAssets (#12827) 2024-04-09 13:26:34 +00:00
texture_attachment.rs Allow mix of hdr and non-hdr cameras to same render target (#13419) 2024-06-06 23:12:32 +02:00
texture_cache.rs Remove unnecessary path prefixes (#10749) 2023-11-28 23:43:40 +00:00