bevy/crates/bevy_pbr/src
Edgar Geier cb0db07c5b Fix dependency of shadow mapping on the optional PrepassPlugin (#7878)
# Objective

Unfortunately, there are three issues with my changes introduced by #7784.

1.  The changes left some dead code. This is already taken care of here: #7875.
2. Disabling prepass causes failures because the shadow mapping relies on the `PrepassPlugin` now.
3. Custom materials use the `prepass.wgsl` shader, but this does not always define a fragment entry point.

This PR fixes 2. and 3. and resolves #7879.

## Solution

- Add a regression test with disabled prepass.
- Split `PrepassPlugin` into two plugins:
  - `PrepassPipelinePlugin` contains the part that is required for the shadow mapping to work and is unconditionally added.
  - `PrepassPlugin` now only adds the systems and resources required for the "real" prepasses.
- Add a noop fragment entry point to `prepass.wgsl`, used if `NORMAL_PASS` is not defined.


Co-authored-by: Edgar Geier <geieredgar@gmail.com>
2023-03-03 15:08:54 +00:00
..
environment_map Fix some more typos (#7767) 2023-02-20 23:36:28 +00:00
prepass Fix dependency of shadow mapping on the optional PrepassPlugin (#7878) 2023-03-03 15:08:54 +00:00
render Remove dead code after #7784 (#7875) 2023-03-02 22:44:10 +00:00
alpha.rs Standard Material Blend Modes (#6644) 2023-01-21 21:46:53 +00:00
bundle.rs Cascaded shadow maps. (#7064) 2023-01-25 12:35:39 +00:00
fog.rs Add Distance and Atmospheric Fog support (#6412) 2023-01-29 15:28:56 +00:00
lib.rs Use prepass shaders for shadows (#7784) 2023-03-02 08:21:21 +00:00
light.rs Add orthographic camera support back to directional shadows (#7796) 2023-03-02 08:04:46 +00:00
material.rs Fix dependency of shadow mapping on the optional PrepassPlugin (#7878) 2023-03-03 15:08:54 +00:00
pbr_material.rs Change standard material defaults and update docs (#7664) 2023-02-14 07:43:19 +00:00
wireframe.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00