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

export tangent vector #17

Open
dakom opened this issue Apr 28, 2024 · 0 comments
Open

export tangent vector #17

dakom opened this issue Apr 28, 2024 · 0 comments

Comments

@dakom
Copy link

dakom commented Apr 28, 2024

Would be a nice help to have this in the generated data so that it can be used more directly with normal maps etc.

Probably unrelated, but when I try to use the gltf-spec implementation to compute it in the fragment shader, using the supplied vertices, normals, and uvs, I end up with a bump at the sphere poles:

Happened with other libs too though, probably not a bug here, just another motivation why it would be cool to have it baked in, maybe passing the tangent down will magically make my problem disappear ;)

image

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