Skip to content

Commit 90a45fc

Browse files
authored
Fix morph target motion blur (#23894)
I didn't update a call to `morph_prev_vertex` in commit dbb003c (part of #23023), so the prepass shader fails to compile if motion blur is enabled. ## Testing ```sh cargo run --example many_morph_targets -- --count 4 --motion-blur cargo run --example many_morph_targets -- --count 4 ```
1 parent 64fe756 commit 90a45fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/bevy_pbr/src/prepass/prepass.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput {
140140
#ifdef MORPH_TARGETS
141141

142142
#ifdef HAS_PREVIOUS_MORPH
143-
let prev_vertex = morph_prev_vertex(vertex_no_morph);
143+
let prev_vertex = morph_prev_vertex(vertex_no_morph, vertex_no_morph.instance_index);
144144
#else // HAS_PREVIOUS_MORPH
145145
let prev_vertex = vertex_no_morph;
146146
#endif // HAS_PREVIOUS_MORPH

0 commit comments

Comments
 (0)