How to convert a normal map from tangent space to world space #8620
-
I need convert a PNG normal map from tangent space to world space. Many thanks if anyone can give any helpful guidance。 The following is the method in Unity that I referenced: fragment: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If your model contains normal and tangent attributes,
Does that mean your model does not contain normal and tangent attribute? |
Beta Was this translation helpful? Give feedback.
If your model contains normal and tangent attributes,
getWorldTangentFrame() * normalMap
should meet your need.But you said
Does that mean your model does not contain normal and tangent attribute?