bevy/examples/3d
Torstein Grindvik 99c43fabdf
Usability methods for RenderTargets and image handles (#10736)
# Objective

In my code I use a lot of images as render targets.
I'd like some convenience methods for working with this type.

## Solution

- Allow `.into()` to construct a `RenderTarget`
- Add `.as_image()` 

---

## Changelog

### Added

- `RenderTarget` can be constructed via `.into()` on a `Handle<Image>`
- `RenderTarget` new method: `as_image`

---------

Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
2024-01-04 17:01:04 +00:00
..
3d_gizmos.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
3d_scene.rs Update default ClearColor to better match Bevy's branding (#10339) 2023-11-03 12:57:38 +00:00
3d_shapes.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
3d_viewport_to_world.rs Split Ray into Ray2d and Ray3d and simplify plane construction (#10856) 2023-12-06 14:09:04 +00:00
anti_aliasing.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
atmospheric_fog.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
blend_modes.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
bloom_3d.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
deferred_rendering.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
fog.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
generate_custom_mesh.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
lighting.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
lightmaps.rs Implement lightmaps. (#10231) 2024-01-02 20:38:47 +00:00
lines.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
load_gltf.rs Update default ClearColor to better match Bevy's branding (#10339) 2023-11-03 12:57:38 +00:00
orthographic.rs Simplify examples/3d/orthographic (#11045) 2024-01-02 19:27:22 +00:00
parallax_mapping.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
parenting.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
pbr.rs Update default ClearColor to better match Bevy's branding (#10339) 2023-11-03 12:57:38 +00:00
render_to_texture.rs Usability methods for RenderTargets and image handles (#10736) 2024-01-04 17:01:04 +00:00
shadow_biases.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
shadow_caster_receiver.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
skybox.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
spherical_area_lights.rs Update default ClearColor to better match Bevy's branding (#10339) 2023-11-03 12:57:38 +00:00
split_screen.rs Keep track of when a texture is first cleared (#10325) 2023-12-31 00:37:37 +00:00
spotlight.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
ssao.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
texture.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
tonemapping.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
transmission.rs Fix ci xvfb (#11143) 2023-12-30 09:07:31 +00:00
transparency_3d.rs Fixed several missing links in docs. (#8117) 2023-04-23 17:28:36 +00:00
two_passes.rs Keep track of when a texture is first cleared (#10325) 2023-12-31 00:37:37 +00:00
update_gltf_scene.rs Update default ClearColor to better match Bevy's branding (#10339) 2023-11-03 12:57:38 +00:00
vertex_colors.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
wireframe.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00