mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
144f727d5a
We have only one gl renderer now, and it is a bit odd for it not be called gl.
18 lines
290 B
GLSL
18 lines
290 B
GLSL
// VERTEX_SHADER:
|
|
// blit.glsl
|
|
|
|
void main() {
|
|
gl_Position = u_projection * u_modelview * vec4(aPosition, 0.0, 1.0);
|
|
|
|
vUv = vec2(aUv.x, aUv.y);
|
|
}
|
|
|
|
// FRAGMENT_SHADER:
|
|
// blit.glsl
|
|
|
|
void main() {
|
|
vec4 diffuse = GskTexture(u_source, vUv);
|
|
|
|
gskSetScaledOutputColor(diffuse, u_alpha);
|
|
}
|