glUniformMatrix4fv (2, 1, GL_FALSE, &worldMat[0][0]);. 不过这种自定义location,需要十分小心,如果赋予两个uniform同样的location,那就会产生链接错误 ...
確定! 回上一頁