In order to load a 4×4 matrix, we use glUniformMatrix4fv. In Sample code 6-8, its first argument is the location index returned by glGetUniformLocation.
確定! 回上一頁