mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-08 19:50:21 +00:00
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).
20 lines
326 B
GLSL
20 lines
326 B
GLSL
precision highp float;
|
|
|
|
uniform sampler2D map;
|
|
uniform sampler2D parentMap;
|
|
uniform mat4 mvp;
|
|
uniform float alpha;
|
|
uniform int blendMode;
|
|
|
|
in vec2 vUv;
|
|
|
|
out vec4 outputColor;
|
|
|
|
vec4 Texture(sampler2D sampler, vec2 texCoords) {
|
|
return texture(sampler, texCoords);
|
|
}
|
|
|
|
void setOutputColor(vec4 color) {
|
|
outputColor = color;
|
|
}
|