Transpose a mat4 in OpenGL ES 2.0 GLSL
问题 I'd like to transpose a matrix in my OpenGL ES 2.0 vertex shader, but apparently my iPad 3 doesn't support GLSL #version 120 , which is needed for the built-in function transpose(mat4) . I know there are options to work around that, like transposing the matrix on the CPU before passing it to the graphics chip, but it would make my shader a lot simpler if I could transpose it there. So, is there an option to transpose a mat4 in a shader on an iOS 6 device? Another thing: The question What