bevy/crates/bevy_pbr
Nicola Papale 889a5fb130
Fix morph target prepass shader (#9013)
# Objective

Since 10f5c92, shadows were broken for models with morph target.

When #5703 was merged, the morph target code in `render/mesh.wgsl` was
correctly updated to use the new import syntax. However, similar code
exists in `prepass/prepass.wgsl`, but it was never update. (the reason
code is duplicated is that the `Vertex` struct is different for both
files).

## Solution

Update the code, so that shadows render correctly with morph targets.
2023-07-02 06:41:26 +00:00
..
src Fix morph target prepass shader (#9013) 2023-07-02 06:41:26 +00:00
Cargo.toml improve shader import model (#5703) 2023-06-27 00:29:22 +00:00