diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-22 14:26:53 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-05-28 14:53:34 -0400 |
commit | 6f67bfe5ab111881f2c066502b845d35c0c24a30 (patch) | |
tree | cb0c3e27dc6cdc46f538e635d8f169799470dfbb /render/gles2/shaders | |
parent | 3de330ec856edbae2caa13d9358dc5dfddf35370 (diff) |
renderer/gles2: Interpret matrix as column major in shader
Avoids us needing to transpose.
Diffstat (limited to 'render/gles2/shaders')
-rw-r--r-- | render/gles2/shaders/common.vert | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/gles2/shaders/common.vert b/render/gles2/shaders/common.vert index 9cebb458..4f855a5d 100644 --- a/render/gles2/shaders/common.vert +++ b/render/gles2/shaders/common.vert @@ -4,6 +4,6 @@ attribute vec2 texcoord; varying vec2 v_texcoord; void main() { - gl_Position = vec4(proj * vec3(pos, 1.0), 1.0); + gl_Position = vec4(vec3(pos, 1.0) * proj, 1.0); v_texcoord = texcoord; } |