2021-03-12 02:31:31 +00:00
|
|
|
// VERTEX_SHADER:
|
2021-03-12 19:25:05 +00:00
|
|
|
// blit.glsl
|
2021-03-12 00:46:15 +00:00
|
|
|
|
2021-03-12 02:31:31 +00:00
|
|
|
void main() {
|
|
|
|
gl_Position = u_projection * u_modelview * vec4(aPosition, 0.0, 1.0);
|
|
|
|
|
|
|
|
vUv = vec2(aUv.x, aUv.y);
|
|
|
|
}
|
|
|
|
|
|
|
|
// FRAGMENT_SHADER:
|
2021-03-12 19:25:05 +00:00
|
|
|
// blit.glsl
|
|
|
|
|
2021-03-12 02:31:31 +00:00
|
|
|
void main() {
|
|
|
|
vec4 diffuse = GskTexture(u_source, vUv);
|
|
|
|
|
2021-03-13 23:21:45 +00:00
|
|
|
gskSetScaledOutputColor(diffuse, u_alpha);
|
2021-03-12 02:31:31 +00:00
|
|
|
}
|