mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
14 lines
432 B
Text
14 lines
432 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( highp vec2(xlv_TEXCOORD0), highp vec4(xlv_COLOR));
|
|
gl_FragData[0] = mediump vec4( xl_retval);
|
|
}
|