mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
66 lines
1.4 KiB
Text
66 lines
1.4 KiB
Text
struct v2f {
|
|
vec4 pos;
|
|
vec4 uv[2];
|
|
};
|
|
uniform vec4 _Color;
|
|
uniform sampler2D _MainTex;
|
|
vec4 frag (
|
|
in v2f i_1
|
|
)
|
|
{
|
|
vec4 c_2;
|
|
vec4 tmpvar_3;
|
|
tmpvar_3 = texture2D (_MainTex, i_1.uv[0].xy);
|
|
vec4 tmpvar_4;
|
|
tmpvar_4 = tmpvar_3;
|
|
c_2 = tmpvar_4;
|
|
vec4 tmpvar_5;
|
|
tmpvar_5 = texture2D (_MainTex, i_1.uv[0].zw);
|
|
vec4 tmpvar_6;
|
|
tmpvar_6 = (c_2 + tmpvar_5);
|
|
c_2 = tmpvar_6;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7 = texture2D (_MainTex, i_1.uv[1].xy);
|
|
vec4 tmpvar_8;
|
|
tmpvar_8 = (c_2 + tmpvar_7);
|
|
c_2 = tmpvar_8;
|
|
vec4 tmpvar_9;
|
|
tmpvar_9 = texture2D (_MainTex, i_1.uv[1].zw);
|
|
vec4 tmpvar_10;
|
|
tmpvar_10 = (c_2 + tmpvar_9);
|
|
c_2 = tmpvar_10;
|
|
vec3 tmpvar_11;
|
|
tmpvar_11 = (c_2.xyz * _Color.xyz);
|
|
c_2.xyz = tmpvar_11.xyz.xyz;
|
|
return (c_2 * _Color.w);
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
v2f xlt_i_12;
|
|
vec4 xl_retval_13;
|
|
vec4 tmpvar_14;
|
|
tmpvar_14 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
xlt_i_12.pos = tmpvar_14;
|
|
vec4 tmpvar_15;
|
|
tmpvar_15 = gl_TexCoord[0].xyzw;
|
|
vec4 tmpvar_16;
|
|
tmpvar_16 = tmpvar_15;
|
|
xlt_i_12.uv[0] = tmpvar_16;
|
|
vec4 tmpvar_17;
|
|
tmpvar_17 = gl_TexCoord[1].xyzw;
|
|
vec4 tmpvar_18;
|
|
tmpvar_18 = tmpvar_17;
|
|
xlt_i_12.uv[1] = tmpvar_18;
|
|
vec4 tmpvar_19;
|
|
tmpvar_19 = frag (xlt_i_12);
|
|
vec4 tmpvar_20;
|
|
tmpvar_20 = tmpvar_19;
|
|
xl_retval_13 = tmpvar_20;
|
|
vec4 tmpvar_21;
|
|
tmpvar_21 = xl_retval_13.xyzw;
|
|
vec4 tmpvar_22;
|
|
tmpvar_22 = tmpvar_21;
|
|
gl_FragData[0] = tmpvar_22;
|
|
}
|
|
|