mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
14 lines
412 B
Text
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);
|
|
}
|