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

add mesh mirroring support #58

Open
mgsx-dev opened this issue Oct 25, 2021 · 0 comments
Open

add mesh mirroring support #58

mgsx-dev opened this issue Oct 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mgsx-dev
Copy link
Owner

Currently, mesh nodes with negative scaling appears with normal flipped which is wrong as per GLTF spec. :

When a mesh primitive uses any triangle-based topology (i.e., triangles, triangle strip, or triangle fan), the determinant of the node’s global transform defines the winding order of that primitive. If the determinant is a positive value, the winding order triangle faces is counterclockwise; in the opposite case, the winding order is clockwise.
Implementation Note : Switching the winding order to clockwise enables mirroring geometry via negative scale transforms.

The best way to implement it would be to add winding order state management to the RenderContext (libgdx core).

@mgsx-dev mgsx-dev added the enhancement New feature or request label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant