Files
gtk/gsk/resources/glsl/blit.fs.glsl
Emmanuele Bassi ac9517c0aa 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-07-04 13:55:00 +01:00

6 lines
109 B
GLSL

void main() {
vec4 diffuse = Texture(map, vUv);
setOutputColor(vec4(diffuse.xyz, diffuse.a * alpha));
}