bevy/examples/3d
m-edlund 8d53c0af91
improve sub view example with dynamic viewports (#15681)
# Objective

- Adds better comments and includes an example where the aspect ratio
between `size` and `full_size` differ
- Fixes #15576

## Solution

- Viewports are dynamically scaled to window size

## Testing

- Tested with moving the window around and by manually setting the
window scaling factor
- Just to make sure nothing else is going on, someone on macOS should
also test this

## Showcase

Since calculating padding from window size is a hassle, the example now
looks a bit more squished together:


![image](https://github.com/user-attachments/assets/68609cf2-5a67-49bd-8e0b-910bfd17f4d8)
2024-10-08 16:07:31 +00:00
..
3d_scene.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
3d_shapes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
3d_viewport_to_world.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
animated_material.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
anisotropy.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
anti_aliasing.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
atmospheric_fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
auto_exposure.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
blend_modes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
bloom_3d.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
camera_sub_view.rs improve sub view example with dynamic viewports (#15681) 2024-10-08 16:07:31 +00:00
clearcoat.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
color_grading.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
deferred_rendering.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
depth_of_field.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
fog_volumes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
generate_custom_mesh.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
irradiance_volumes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lighting.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lightmaps.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lines.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
load_gltf.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
load_gltf_extras.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
meshlet.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
motion_blur.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
order_independent_transparency.rs Add Order Independent Transparency (#14876) 2024-10-07 23:50:28 +00:00
orthographic.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
parallax_mapping.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
parenting.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
pbr.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
pcss.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
post_processing.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
query_gltf_primitives.rs Fix query_gltf_primitives example (#15715) 2024-10-07 23:03:16 +00:00
reflection_probes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
render_to_texture.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
rotate_environment_map.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
scrolling_fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
shadow_biases.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
shadow_caster_receiver.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
skybox.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
spherical_area_lights.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
split_screen.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
spotlight.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ssao.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ssr.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
texture.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
tonemapping.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
transmission.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
transparency_3d.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
two_passes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
update_gltf_scene.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
vertex_colors.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
visibility_range.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
volumetric_fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
wireframe.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00