Showing posts with label OpenGL. Show all posts
Showing posts with label OpenGL. Show all posts

skin shading - stretch correction

Wednesday, September 30, 2009 | | 0 comment(s)

Ok, a little update on the skin shading, especially the calculation of the stretch correction map.

OPENGL & DERIVATION INSTRUCTIONS

I encountered a problem with the implementation of the stretch-map rendering. I use the ddx() function to get the derivative of the world position in UV space, i.e. how much the world position changes from one pixel to the next. This way you get a nice approximation of the texture coordinate distortion. For more information about the whole process have a look at my previous post here.