Skip to content

Commit

Permalink
Fix bevy_pbr shader function name (bevyengine#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
bevyengine@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 and Ray Redondo committed Jan 9, 2024
1 parent bfc7d36 commit fb11eaf
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 fb11eaf

Please sign in to comment.