Skip to content

Conversation

@connershoop
Copy link

add new shader to rotate normal map vectors in world coordinates to correctly align with the rotation of the sprite being drawn

@tanema
Copy link
Owner

tanema commented Dec 17, 2025

Thanks for your contribution! I appreciate how small and concise it is! However, can I get a bit more explanation of this?

What is the problem being solved. Why does rotation need to be done with shader rather than rotation of just the normal map image? Can I get a sample to run of it working or adding to the examples?

@connershoop
Copy link
Author

Sure, I've added rotation to the normal map example. I had to add a background rectangle to hide rendering artifacts left over from light world. You can remove this line to recreate them if you'd like.

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