Posted 08 December 2012 - 11:25 AM
I just wonder can I do parallax mapping in world space or view space?If I can't,is there a way to calculate a orthogonal TBN matrix in ps?And what else technique must have tangent space?
Thanks for reply.
Edited by Tunisia hawker, 09 December 2012 - 08:47 PM.
Hello,I am trying normal map and I calculate TBN matrix in pixel shader.Problem is the technique I use give a TBN matrix which is not a orthogonal matrix.It can only translate vectors from tangent space to local space,not the opposite way.So I just do lighting in world space.