Files
filament/third_party/glslang/Test/varyingArray.frag
Romain Guy 9f2592ed9d Update SPIRV libraries (#99)
* Update SPIRV libraries

- Update `spirv-cross`
- Update `spirv-tools`
- Update `glslang`

`spirv-tools` contains a fix for an issue we reported (unnecessary promotions to highp in certain expressions).

* Add SPIRV-Tools dependency to matinfo
2018-08-15 12:59:17 -07:00

20 lines
371 B
GLSL

#version 130
uniform sampler2D texSampler2D;
varying vec4 color;
varying float alpha;
varying vec4 gl_TexCoord[6];
varying vec4 foo[3];
void main()
{
vec4 texColor = texture2D(texSampler2D, vec2(gl_TexCoord[4] + gl_TexCoord[5]));
texColor += color;
texColor.a = alpha;
gl_FragColor = foo[1] + gl_TexCoord[0] + gl_TexCoord[4] + texColor;
}