Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Computing Tangents after deforming mesh in shader

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2010

    Computing Tangents after deforming mesh in shader

    So I have a plane, I have sent in the Tangent attributes to the shader.
    I have a normal and height map (normal map generated off line from height map). Height map is used to deform mesh, normal map (in tangent space) is used for lighting calcs
    My question is: Now that I have deformed the mesh, how can I recalculate the tangents using only the old tangent value, the normal map, the old pos and the new pos? Especially if you are
    using Tessellation shaders? The pre-computed tangent/binormal is going to be useless here isn't it?

    Is this possible? or should I just use object space normal maps?

    Last edited by Moetman; 07-11-2017 at 06:12 PM.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Why would the tangents need to be recalculated?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts