Skip to content

Conversation

@ondra-vaic
Copy link

@ondra-vaic ondra-vaic commented Sep 19, 2023

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:
image

… is in world space so we use TransformWorldToHClip
@BenetManzanaresSalor
Copy link

I second that this simple change solves the problem!

@DarkanVIII
Copy link

Thank you very much! I hope he includes this change.

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.

3 participants