bevy/crates/bevy_core_pipeline/src
Han Damin 29c632b524
Add common aspect ratio constants and improve documentation (#15091)
Hello,

I'd like to contribute to this project by adding some useful constants
and improving the documentation for the AspectRatio struct. Here's a
summary of the changes I've made:

1. Added new constants for common aspect ratios:
   - SIXTEEN_NINE (16:9)
   - FOUR_THREE (4:3)
   - ULTRAWIDE (21:9)

2. Enhanced the overall documentation:
   - Improved module-level documentation with an overview and use cases
   - Expanded explanation of the AspectRatio struct with examples
- Added detailed descriptions and examples for all methods (both
existing and new)
   - Included explanations for the newly introduced constant values
   - Added clarifications for From trait implementations

These changes aim to make the AspectRatio API more user-friendly and
easier to understand. The new constants provide convenient access to
commonly used aspect ratios, which I believe will be helpful in many
scenarios.

---------

Co-authored-by: Gonçalo Rica Pais da Silva <bluefinger@gmail.com>
Co-authored-by: Lixou <82600264+DasLixou@users.noreply.github.com>
2024-09-09 16:04:41 +00:00
..
auto_exposure Migrated NonZero* to NonZero<*> (#14978) 2024-08-30 02:37:47 +00:00
blit Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
bloom Add common aspect ratio constants and improve documentation (#15091) 2024-09-09 16:04:41 +00:00
contrast_adaptive_sharpening Using Cas instead of CAS #14341 (#14357) 2024-07-20 18:12:24 +00:00
core_2d Split OrthographicProjection::default into 2d & 3d (Adopted) (#15073) 2024-09-09 15:51:28 +00:00
core_3d Have EntityCommands methods consume self for easier chaining (#14897) 2024-08-26 18:24:59 +00:00
deferred Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
dof Remove Component derive for DepthOfFieldMode (#14761) 2024-08-15 17:14:49 +00:00
fullscreen_vertex_shader Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
fxaa Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
motion_blur Move Msaa to component (#14273) 2024-07-22 18:28:23 +00:00
post_process Start a built-in postprocessing stack, and implement chromatic aberration in it. (#13695) 2024-07-15 13:59:02 +00:00
prepass Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
skybox Move Msaa to component (#14273) 2024-07-22 18:28:23 +00:00
smaa Fixup Msaa docs. (#14442) 2024-07-22 21:37:25 +00:00
taa Fix TAA on camera with viewport (#14582) 2024-08-07 23:59:38 +00:00
tonemapping Skip tonemapping in case it is none (#13679) 2024-06-05 11:32:46 +00:00
upscaling Ignore PipelineCache ambiguities (#14772) 2024-08-16 23:43:40 +00:00
lib.rs Unify crate-level preludes (#15080) 2024-09-08 17:10:57 +00:00
msaa_writeback.rs Move Msaa to component (#14273) 2024-07-22 18:28:23 +00:00