Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / test.frag
1 #version 110\r
2 \r
3 uniform sampler2D texSampler2D;\r
4 uniform sampler3D texSampler3D;\r
5 \r
6 uniform float blend;\r
7 uniform vec2 scale;\r
8 uniform vec4 u;\r
9 \r
10 varying vec2 t;\r
11 varying vec3 coords;\r
12 \r
13 void main()\r
14 {  \r
15     float blendscale = 1.789;\r
16 \r
17     vec4 v = texture2D(texSampler2D, (t + scale) / scale ).wzyx;\r
18 \r
19         vec4 w = texture3D(texSampler3D, coords) + v;\r
20     \r
21     gl_FragColor = mix(w, u, blend * blendscale);\r
22 }\r