bevy/pipelined/bevy_pbr2
Robert Swain dd32cd029d Pipelined separate shadow vertex shader (#2727)
# Objective

- Avoid unnecessary work in the vertex shader of the numerous shadow passes
- Have the natural order of bind groups in the pbr shader: view, material, mesh

## Solution

- Separate out the vertex stage of pbr.wgsl into depth.wgsl
- Remove the unnecessary calculation of uv and normal, as well as removing the unnecessary vertex inputs and outputs
- Use the depth.wgsl for shadow passes
- Reorder the bind groups in pbr.wgsl and PbrShaders to be 0 - view, 1 - material, 2 - mesh in decreasing order of rebind frequency
2021-08-25 20:10:43 +00:00
..
src Pipelined separate shadow vertex shader (#2727) 2021-08-25 20:10:43 +00:00
Cargo.toml move bevy_core_pipeline to its own plugin (#2552) 2021-07-28 21:29:32 +00:00