bgfx/3rdparty/glsl-optimizer/tests/fragment/in-vals-ret-vals-inES.txt
2014-02-10 23:06:13 -08:00

14 lines
412 B
Text

mediump vec4 xlat_main( in highp vec2 uv, in highp vec4 color );
mediump vec4 xlat_main( in highp vec2 uv, in highp vec4 color ) {
mediump vec4 c;
c = color;
c.xy += uv;
return c;
}
varying highp vec2 xlv_TEXCOORD0;
varying highp vec4 xlv_COLOR;
void main() {
mediump vec4 xl_retval;
xl_retval = xlat_main( vec2(xlv_TEXCOORD0), vec4(xlv_COLOR));
gl_FragData[0] = vec4( xl_retval);
}