MATERIAL TANGENT

Posted By: picoder

MATERIAL TANGENT - 10/13/11 11:17

In the manual:

TANGENT
Calculates the u tangents for the 3rd texture coordinate set (TEXCOORD2). This has the same effect as defining matTangent in a shader, and allows shaders to convert vectors to tangent space. The binormal vector (v tangent) can be calculated by the vertex shader from the cross product of the vertex normal and the u tangent. On animated models the tangents need to be recalculated every frame, affecting the frame rate, so don't use this flag unnecessarily.

So, do the models which are animated by GPU bones shader need to be recalculated every frame too?
Posted By: jcl

Re: MATERIAL TANGENT - 10/13/11 11:19

No. The CPU does not animate the model in that case and does not recalculate the tangents. They are anyway only calculated when it is really necessary.
Posted By: picoder

Re: MATERIAL TANGENT - 10/13/11 11:30

OK. Thanks for your answer.
© 2024 lite-C Forums