Skip to content
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

[Examples] Add support for normal transformation to the GPU skinning example #4646

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

JeffM2501
Copy link
Contributor

The GPU skinning example only transformed the vertex data in the shader, it did not show how to also transform the normal data. Even though the normals are not used by the fragment shader, I feel it is important to have an example of how to transform the normals by the skin transforms for people that do want to eventually use lighting on GPU skinned meshes.

This PR transforms the normal and passes it to the fragment shader.

@raysan5 raysan5 merged commit f355d6f into raysan5:master Dec 29, 2024
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 29, 2024

@JeffM2501 nice! 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