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);
|
|
|
|
|
|
|
|
gskSetOutputColor(diffuse * u_alpha);
|
|
|
|
}
|