mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-12 09:11:18 -05:00
24 lines
545 B
Text
24 lines
545 B
Text
|
struct v2f {
|
||
|
highp vec4 pos;
|
||
|
highp vec2 uv;
|
||
|
highp vec4 color;
|
||
|
};
|
||
|
mediump vec4 xlat_main( in v2f i );
|
||
|
mediump vec4 xlat_main( in v2f i ) {
|
||
|
mediump vec4 c;
|
||
|
c = i.color;
|
||
|
c.xy += i.uv;
|
||
|
return c;
|
||
|
}
|
||
|
varying highp vec2 xlv_TEXCOORD0;
|
||
|
varying highp vec4 xlv_COLOR;
|
||
|
void main() {
|
||
|
mediump vec4 xl_retval;
|
||
|
v2f xlt_i;
|
||
|
xlt_i.pos = highp vec4(0.0);
|
||
|
xlt_i.uv = highp vec2( xlv_TEXCOORD0);
|
||
|
xlt_i.color = highp vec4( xlv_COLOR);
|
||
|
xl_retval = xlat_main( xlt_i);
|
||
|
gl_FragData[0] = mediump vec4( xl_retval);
|
||
|
}
|