-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bevy_pbr shader function name #10423
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
You can test the interaction between prepass and morph targets with this example file: https://gist.github.com/nicopap/bf97174f1496df4854909d672eb2cc0f Can you confirm it works? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given morph_vertex
is a local function, this definitely looks like it fixes a bug.
# 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?
# 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?
# 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?
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 withmorph::
(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?