hbuel
01-14-2007, 07:23 AM
Hi,
I need the normals from my object in world space. But as far as I understand it, there isn't any matrix which performs that task in GLSL, is it? I've read about separating the gl_ModelView Matrix to perform this task.
But I'm not sure on how to do it. Any ideas on how to do this - converting an object spaced normal in GLSL to world space?
thank you!
I need the normals from my object in world space. But as far as I understand it, there isn't any matrix which performs that task in GLSL, is it? I've read about separating the gl_ModelView Matrix to perform this task.
But I'm not sure on how to do it. Any ideas on how to do this - converting an object spaced normal in GLSL to world space?
thank you!