mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Fix bevy_pbr shader function name (#10423)
# 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
61bad4eb57 (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?
This commit is contained in:
parent
e8ba68d702
commit
e0a532cb4b
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput {
|
||||||
var out: VertexOutput;
|
var out: VertexOutput;
|
||||||
|
|
||||||
#ifdef MORPH_TARGETS
|
#ifdef MORPH_TARGETS
|
||||||
var vertex = morph::morph_vertex(vertex_no_morph);
|
var vertex = morph_vertex(vertex_no_morph);
|
||||||
#else
|
#else
|
||||||
var vertex = vertex_no_morph;
|
var vertex = vertex_no_morph;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue