summaryrefslogtreecommitdiff
path: root/shaders/skia/4-168.shader_test
blob: 48c5929f85229f289d4f6638e31ec465a5b28417 (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
27
28
29
30
31
32
33
34
35
[require]
GLSL >= 1.40

[fragment shader]
#version 140

out vec4 sk_FragColor;
uniform sampler2D uTextureSampler_0_Stage0;
in vec2 vlocalCoord_Stage0;
void main() {
    vec4 outputColor_Stage0;
    {
        outputColor_Stage0 = vec4(1.0);
        vec2 texCoord;
        texCoord = vlocalCoord_Stage0;
        outputColor_Stage0 = texture(uTextureSampler_0_Stage0, texCoord);
    }
    {
        sk_FragColor = outputColor_Stage0;
    }
}

[vertex shader]
#version 140

uniform vec4 sk_RTAdjust;
in vec3 position;
in vec2 localCoord;
out vec2 vlocalCoord_Stage0;
void main() {
    vlocalCoord_Stage0 = localCoord;
    gl_Position = vec4(position.x, position.y, 0.0, position.z);
    gl_Position = vec4(gl_Position.xy * sk_RTAdjust.xz + gl_Position.ww * sk_RTAdjust.yw, 0.0, gl_Position.w);
}