summaryrefslogtreecommitdiff
path: root/shaders/skia/1-888.shader_test
blob: 94bd97a463e7f7e5ad94728188abbf4769a379f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[require]
GLSL >= 1.40

[vertex shader]
#version 140

in vec2 a_vertex;
uniform vec4 u_texCoordXform;
uniform vec4 u_posXform;
noperspective out vec2 v_texCoord;
void main() {
    v_texCoord = a_vertex * u_texCoordXform.xy + u_texCoordXform.zw;
    gl_Position.xy = a_vertex * u_posXform.xy + u_posXform.zw;
    gl_Position.zw = vec2(0.0, 1.0);
}

[fragment shader]
#version 140

out vec4 sk_FragColor;
noperspective in vec2 v_texCoord;
uniform sampler2D u_texture;
void main() {
    sk_FragColor = texture(u_texture, v_texCoord);
}