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

Tangent space sync issues on normal mapped meshes #78343

Closed
ParsleighScumble opened this issue Jun 16, 2023 · 0 comments · Fixed by #100441 · May be fixed by #78339
Closed

Tangent space sync issues on normal mapped meshes #78343

ParsleighScumble opened this issue Jun 16, 2023 · 0 comments · Fixed by #100441 · May be fixed by #78339

Comments

@ParsleighScumble
Copy link
Contributor

Godot version

master

System information

Windows 10 - Godot master - Vulkan forward+ - Nvidia driver 516.94

Issue description

Related bug to #78339

MikkTSpace expects tangent space to not be normalized per fragment. This causes slight rendering issues with tangent space normal maps. I've submitted a pull request with the fix.

Steps to reproduce

Bake a normal map from a high-poly model to a low-poly model and apply it to a material in Godot. If you look carefully you will see small differences away from vertices. This indicates an issue in the normal map rendering where vertex properties are being interpolated incorrectly. It's more noticeable in the normal buffer view mode.

Minimal reproduction project

godot_tstest.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants