Transpose a mat4 in OpenGL ES 2.0 GLSL

后端 未结 2 1918
清酒与你
清酒与你 2021-02-09 05:52

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 fun

2条回答
  •  无人及你
    2021-02-09 06:15

    As the answer to What version of GLSL is used in the iPhone(s)? correctly states, iOS supports OpenGL ES 2.0 with its companion shading language: ESSL 1.0. ESSL 1.0 is based on, but not identical to GLSL 1.20.

    There is no built-in transpose function in ESSL 1.0, so you'll need to implement your own.

提交回复
热议问题