forked from AuroraMiddleware/gtk
28b490f14f
The GL renderer should build the GLSL shaders using GskShaderBuilder. This allows us to separate the common parts into separate files, and assemble them as necessary, instead of shipping one big shader per type of GL API (GL3, GL legacy, and GLES).
17 lines
290 B
GLSL
17 lines
290 B
GLSL
precision mediump float;
|
|
|
|
uniform mat4 mvp;
|
|
uniform sampler2D map;
|
|
uniform sampler2D parentMap;
|
|
uniform float alpha;
|
|
|
|
varying vec2 vUv;
|
|
|
|
vec4 Texture(sampler2D sampler, vec2 texCoords) {
|
|
return texture2D(sampler, texCoords);
|
|
}
|
|
|
|
void setOutputColor(vec4 color) {
|
|
gl_FragColor = color;
|
|
}
|