Skip to content

Fix fragPosition using wrong matrix in lighting_instancing.vs #4056

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

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Fix fragPosition using wrong matrix in lighting_instancing.vs #4056

merged 1 commit into from
Jun 11, 2024

Conversation

karl-zylinski
Copy link
Contributor

fragPosition was multiplied by mvp*instanceTransform, but it should only be multiplied by instanceTransform. Compare to lighting.vs, there we only use mvp for gl_Position, but matModel for the fragPosition.

fragPosition was multiplied by mvp*instanceTransform, but it should only be multiplied by instanceTransform. Compare to lighting.vs, there we only use mvp for gl_Position, but matModel for the fragPosition.
@raysan5 raysan5 merged commit fffae1a into raysan5:master Jun 11, 2024
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Jun 11, 2024

@karl-zylinski Oh! Good catch! Thanks for the review! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants