gtk2/gsk/resources/glsl/blit.vs.glsl
Emmanuele Bassi 0fbf638999 gsk: Add 'blit' program
For the root node we do not need to use blending, as it does not have
any backdrop to blend into. We can use a simpler 'blit' program that
only takes the content of the source and fills the texture quad with
it.
2016-10-18 11:49:08 +01:00

7 lines
120 B
GLSL

void main() {
gl_Position = mvp * vec4(position, 0.0, 1.0);
// Flip the sampling
vUv = vec2(uv.x, 1.0 - uv.y);
}