Closed novalain closed 6 years ago
Calculate tangents and bitangents in mesh class (useful for setting up the TBN matrix when dealing with bump maps). Method from: http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-13-normal-mapping/ Resolves #49
Still TODO: Check handedness. UV's might be oriented in a wrong way (could be the case when dealing with symmetric models).
The changes look good. Thanks for your contribution!
Calculate tangents and bitangents in mesh class (useful for setting up the TBN matrix when dealing with bump maps). Method from: http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-13-normal-mapping/ Resolves #49
Still TODO: Check handedness. UV's might be oriented in a wrong way (could be the case when dealing with symmetric models).