mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
36 lines
574 B
Text
36 lines
574 B
Text
|
struct v2f {
|
||
|
vec4 pos;
|
||
|
vec4 color;
|
||
|
};
|
||
|
vec4 frag (
|
||
|
in v2f i_1
|
||
|
)
|
||
|
{
|
||
|
return i_1.color;
|
||
|
}
|
||
|
|
||
|
void main ()
|
||
|
{
|
||
|
v2f xlt_i_2;
|
||
|
vec4 xl_retval_3;
|
||
|
vec4 tmpvar_4;
|
||
|
tmpvar_4 = vec4(0.0, 0.0, 0.0, 0.0);
|
||
|
xlt_i_2.pos = tmpvar_4;
|
||
|
vec4 tmpvar_5;
|
||
|
tmpvar_5 = gl_Color.xyzw;
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6 = tmpvar_5;
|
||
|
xlt_i_2.color = tmpvar_6;
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = frag (xlt_i_2);
|
||
|
vec4 tmpvar_8;
|
||
|
tmpvar_8 = tmpvar_7;
|
||
|
xl_retval_3 = tmpvar_8;
|
||
|
vec4 tmpvar_9;
|
||
|
tmpvar_9 = xl_retval_3.xyzw;
|
||
|
vec4 tmpvar_10;
|
||
|
tmpvar_10 = tmpvar_9;
|
||
|
gl_FragData[0] = tmpvar_10;
|
||
|
}
|
||
|
|