gdk: Add GLES shaders

We cannot use GL shaders with GLES.
This commit is contained in:
Emmanuele Bassi
2016-04-22 13:52:49 +01:00
parent 3da73371b9
commit 8bb4eb5544
4 changed files with 45 additions and 4 deletions

View File

@ -0,0 +1,9 @@
precision mediump float;
uniform sampler2D map;
varying highp vec2 vUv;
void main() {
gl_FragColor = texture2D(map, vUv);
}

View File

@ -0,0 +1,10 @@
attribute vec2 position;
attribute vec2 uv;
varying highp vec2 vUv;
void main() {
vUv = uv;
gl_Position = vec4(position, 0.0, 1.0);
}