Merge pull request #2908 from Biswa96/cmake-spirv-remap
[platform/upstream/glslang.git] / Test / spv.pp.line.frag
1 #version 140
2
3 uniform sampler1D       texSampler1D;
4 uniform sampler2D       texSampler2D;
5
6 varying float blend;
7 varying vec4 u;
8
9 in  vec2 coords2D;
10
11 void main()
12 {
13     float blendscale = 1.789;
14     float bias       = 2.0;
15     float coords1D   = 1.789;
16     vec4  color      = vec4(0.0, 0.0, 0.0, 0.0);
17 #line 53
18     color += texture    (texSampler1D, coords1D);
19     color += texture    (texSampler1D, coords1D, bias);
20 #line 102
21     color += texture        (texSampler2D, coords2D);
22     color += texture        (texSampler2D, coords2D, bias);
23
24     gl_FragColor = mix(color, u, blend * blendscale);
25 }