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

ModelPlane doesn't modify the plane's normal #10

Open
DragoniteSpam opened this issue Jan 23, 2023 · 0 comments
Open

ModelPlane doesn't modify the plane's normal #10

DragoniteSpam opened this issue Jan 23, 2023 · 0 comments

Comments

@DragoniteSpam
Copy link

In the ModelPlane function, the plane's normal is transformed by the model's inverse world matrix as needed, but the distance from origin isn't - eg, take a point on the plane, multiply it by the inverse world matrix, and dot it against the transformed normal to get the transformed distance.

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

No branches or pull requests

1 participant