Skip to content

Commit

Permalink
Fix bevy_pbr shader function name (#10423)
Browse files Browse the repository at this point in the history
# Objective

Fix a shader error that happens when using pbr morph targets.

## Solution

Fix the function name in the `prepass.wgsl` shader, which is incorrectly
prefixed with `morph::` (added in
61bad4e#diff-97e4500f0a36bc6206d7b1490c8dd1a69459ee39dc6822eb9b2f7b160865f49fR42).

This section of the shader is only enabled when using morph targets, so
it seems like there are no tests / examples using it?
  • Loading branch information
kayhhh authored Nov 7, 2023
1 parent 72a6106 commit c98481a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/prepass/prepass.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput {
var out: VertexOutput;

#ifdef MORPH_TARGETS
var vertex = morph::morph_vertex(vertex_no_morph);
var vertex = morph_vertex(vertex_no_morph);
#else
var vertex = vertex_no_morph;
#endif
Expand Down

0 comments on commit c98481a

Please sign in to comment.