Preview rotation follows device

This commit is contained in:
Benjamin Schaaf
2021-05-04 00:06:55 +10:00
parent 46bfb39dfd
commit 64b75bcbe5
6 changed files with 142 additions and 15 deletions

View File

@@ -5,10 +5,12 @@ precision mediump float;
attribute vec2 vert;
attribute vec2 tex_coord;
uniform mat3 transform;
varying vec2 uv;
void main() {
uv = tex_coord;
gl_Position = vec4(vert, 0, 1);
gl_Position = vec4(transform * vec3(vert, 1), 1);
}