bevy/crates/bevy_core_pipeline/src
IceSentry d9993a8092
Enable depth of field on webgpu (#13374)
# Objective

- Depth of field is currently disabled on any wasm targets, but the bug
it's trying to avoid is only an issue in webgl.

## Solution

- Enable dof when compiling for webgpu
- I also remove the msaa check because sampling a depth texture doesn't
work with or without msaa in webgl
- Unfortunately, Bokeh seems to be broken when using webgpu, so default
to Gaussian instead to make sure the defaults have the broadest platform
support

## Testing

- I added dof to the 3d_shapes example and compiled it to webgpu to
confirm it works
- I also tried compiling to webgl to confirm things still works and dof
isn't rendered.

---------

Co-authored-by: James Liu <contact@jamessliu.com>
2024-05-16 06:48:28 +00:00
..
auto_exposure Fix incorrect workgroupBarrier and OOB array access in auto_exposure (#13283) 2024-05-12 23:24:58 +00:00
blit Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
bloom Clean up 2d render phases (#12982) 2024-05-08 08:13:39 +00:00
contrast_adaptive_sharpening Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
core_2d Fix ClearColor in 2d pipelines (#13378) 2024-05-15 20:36:02 +00:00
core_3d Implement fast depth of field as a postprocessing effect. (#13009) 2024-05-13 18:23:56 +00:00
deferred Implement GPU frustum culling. (#12889) 2024-04-28 12:50:00 +00:00
dof Enable depth of field on webgpu (#13374) 2024-05-16 06:48:28 +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 Fix motion blur on wasm (#13099) 2024-05-12 21:03:36 +00:00
prepass Implement GPU frustum culling. (#12889) 2024-04-28 12:50:00 +00:00
skybox Consolidate Render(Ui)Materials(2d) into RenderAssets (#12827) 2024-04-09 13:26:34 +00:00
taa Per-Object Motion Blur (#9924) 2024-04-25 01:16:02 +00:00
tonemapping move wgsl color operations from bevy_pbr to bevy_render (#13209) 2024-05-04 10:30:23 +00:00
upscaling Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
lib.rs Implement fast depth of field as a postprocessing effect. (#13009) 2024-05-13 18:23:56 +00:00
msaa_writeback.rs Clean up 2d render phases (#12982) 2024-05-08 08:13:39 +00:00