System: Vista/WindowsXP | Ati HD4800 driver version 09.12
Compiler/IDE: Delphi2009
Libraries: OpenGL 3.x / GLSL
On making a bones example it struggled upon the fact that my normalMatrix is not willing to be bound anymore.
This is a part of the shader:
This is how i call it:Code:#version 150 uniform mat3 normalMatrix; uniform mat4 boneMatrices[2]; uniform mat4 projectionMatrix; uniform mat4 modelViewMatrix;
All other matrices do work and so has the normalMatrixCode:g_projectionLocation := glslsimpleprog.GetUniformLocation('projectionMatrix'); g_modelViewLocation := glslsimpleprog.GetUniformLocation('modelViewMatrix'); g_normalMatrixLocation := glslsimpleprog.GetUniformLocation('normalMatrix'); g_location_boneMatrices_0 := glslsimpleprog.GetUniformLocation('boneMatrices[0]'); g_location_boneMatrices_1 := glslsimpleprog.GetUniformLocation('boneMatrices[1]');
Here is the complete code:
http://www.noeska.net/downloads/ogl3bones1.zip
What am i missing here?
Bookmarks