shaders-botw-grass
shaders-botw-grass copied to clipboard
Fixing transform issues
Hey, thank you for sharing this awesome grass shader. There is a small issue which breaks the transformations. There's an open pull request attempting to fix it already, however that breaks when the meshes are rotated. I believe this actually fixes all the issues.
The problem was, that the geometry stage receives vertices in world space but then transforms them to clip space with TransformObjectToHClip.
After:
I second that this simple change solves the problem!
Thank you very much! I hope he includes this change.