gdk: Add GLES shaders
We cannot use GL shaders with GLES.
This commit is contained in:
9
gdk/resources/glsl/gles2-texture.fs.glsl
Normal file
9
gdk/resources/glsl/gles2-texture.fs.glsl
Normal file
@ -0,0 +1,9 @@
|
||||
precision mediump float;
|
||||
|
||||
uniform sampler2D map;
|
||||
|
||||
varying highp vec2 vUv;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = texture2D(map, vUv);
|
||||
}
|
||||
10
gdk/resources/glsl/gles2-texture.vs.glsl
Normal file
10
gdk/resources/glsl/gles2-texture.vs.glsl
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user