TheOpenSpaceProgram / new-ospgl

A space exploration game in OpenGL. Devblog: https://tatjam.github.io/index.html
MIT License
42 stars 6 forks source link

Fix tangents #28

Open tatjam opened 3 years ago

tatjam commented 3 years ago

For some reason tangent mapping leads to ugly gaps in the normal map of the mesh. This may be an issue with Blender exporting the tangents, or maybe an issue with the importing, we could try generating them in the importer code instead of relying on Blender, although the error may be in the shaders.