The normal matrix is the transpose inverse of the modelview matrix. So in GLSL it would be mat4 normalMatrix = transpose(inverse(modelView));.
確定! 回上一頁