bevy/examples/shader
JMS55 53667dea56
Temporal Antialiasing (TAA) (#7291)
![image](https://user-images.githubusercontent.com/47158642/214374911-412f0986-3927-4f7a-9a6c-413bdee6b389.png)

# Objective

- Implement an alternative antialias technique
- TAA scales based off of view resolution, not geometry complexity
- TAA filters textures, firefly pixels, and other aliasing not covered
by MSAA
- TAA additionally will reduce noise / increase quality in future
stochastic rendering techniques
- Closes https://github.com/bevyengine/bevy/issues/3663

## Solution

- Add a temporal jitter component
- Add a motion vector prepass
- Add a TemporalAntialias component and plugin
- Combine existing MSAA and FXAA examples and add TAA

## Followup Work
- Prepass motion vector support for skinned meshes
- Move uniforms needed for motion vectors into a separate bind group,
instead of using different bind group layouts
- Reuse previous frame's GPU view buffer for motion vectors, instead of
recomputing
- Mip biasing for sharper textures, and or unjitter texture UVs
https://github.com/bevyengine/bevy/issues/7323
- Compute shader for better performance
- Investigate FSR techniques
  - Historical depth based disocclusion tests, for geometry disocclusion
  - Historical luminance/hue based tests, for shading disocclusion
- Pixel "locks" to reduce blending rate / revamp history confidence
mechanism
- Orthographic camera support for TemporalJitter
- Figure out COD's 1-tap bicubic filter

---

## Changelog

- Added MotionVectorPrepass and TemporalJitter
- Added TemporalAntialiasPlugin, TemporalAntialiasBundle, and
TemporalAntialiasSettings

---------

Co-authored-by: IceSentry <c.giguere42@gmail.com>
Co-authored-by: IceSentry <IceSentry@users.noreply.github.com>
Co-authored-by: Robert Swain <robert.swain@gmail.com>
Co-authored-by: Daniel Chia <danstryder@gmail.com>
Co-authored-by: robtfm <50659922+robtfm@users.noreply.github.com>
Co-authored-by: Brandon Dyer <brandondyer64@gmail.com>
Co-authored-by: Edgar Geier <geieredgar@gmail.com>
2023-03-27 22:22:40 +00:00
..
animate_shader.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
array_texture.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
compute_shader_game_of_life.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
custom_vertex_attribute.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
post_process_pass.rs docs: update docs and comments that still refer to stages (#8156) 2023-03-27 21:50:21 +00:00
post_processing.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_defs.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_instancing.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_material.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_material_glsl.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_material_screenspace_texture.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_prepass.rs Temporal Antialiasing (TAA) (#7291) 2023-03-27 22:22:40 +00:00
texture_binding_array.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00