No one does it better than Brian "The Brain" Will. Sincere thanks to you.
@kadealicious3 жыл бұрын
Your OpenGL videos are extremely informative and well done. Thank you!
@Vagelis_Prokopiou5 жыл бұрын
Thanks Brian. Really informative.
@andrewh1115 жыл бұрын
For the smoothed/non-orthogonal normals/tangents I think re-orthogonising them in the fragment shader should work.
@briantwill5 жыл бұрын
I've seen some suggest doing so in the vertex shader too, but either way I'm skeptical about the correctness. I suppose it depends on what the authors of the models and normal maps expect to see (but then you have the problem of stretching in animation, in which case in may not be possible to visually check all possible states).
@glowiever5 жыл бұрын
I did this for my animated character, reorthogonalizing in vertex shader, and renormalizing in fragment shader. as long as the mesh do not become degenerate it works quite fine.