mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
132 lines
3 KiB
Text
132 lines
3 KiB
Text
struct v2f {
|
|
vec4 pos;
|
|
vec2 uv;
|
|
};
|
|
uniform sampler2D _MainTex9;
|
|
uniform sampler2D _MainTex8;
|
|
uniform sampler2D _MainTex7;
|
|
uniform sampler2D _MainTex6;
|
|
uniform sampler2D _MainTex5;
|
|
uniform sampler2D _MainTex4;
|
|
uniform sampler2D _MainTex3;
|
|
uniform sampler2D _MainTex2;
|
|
uniform sampler2D _MainTex15;
|
|
uniform sampler2D _MainTex14;
|
|
uniform sampler2D _MainTex13;
|
|
uniform sampler2D _MainTex12;
|
|
uniform sampler2D _MainTex11;
|
|
uniform sampler2D _MainTex10;
|
|
uniform sampler2D _MainTex1;
|
|
uniform sampler2D _MainTex0;
|
|
vec4 frag (
|
|
in v2f i
|
|
)
|
|
{
|
|
vec4 col;
|
|
vec4 tmpvar_1;
|
|
tmpvar_1 = texture2D (_MainTex0, i.uv);
|
|
vec4 tmpvar_2;
|
|
tmpvar_2 = tmpvar_1;
|
|
col = tmpvar_2;
|
|
vec4 tmpvar_3;
|
|
tmpvar_3 = texture2D (_MainTex1, i.uv);
|
|
vec4 tmpvar_4;
|
|
tmpvar_4 = (col + tmpvar_3);
|
|
col = tmpvar_4;
|
|
vec4 tmpvar_5;
|
|
tmpvar_5 = texture2D (_MainTex2, i.uv);
|
|
vec4 tmpvar_6;
|
|
tmpvar_6 = (col + tmpvar_5);
|
|
col = tmpvar_6;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7 = texture2D (_MainTex3, i.uv);
|
|
vec4 tmpvar_8;
|
|
tmpvar_8 = (col + tmpvar_7);
|
|
col = tmpvar_8;
|
|
vec4 tmpvar_9;
|
|
tmpvar_9 = texture2D (_MainTex4, i.uv);
|
|
vec4 tmpvar_10;
|
|
tmpvar_10 = (col + tmpvar_9);
|
|
col = tmpvar_10;
|
|
vec4 tmpvar_11;
|
|
tmpvar_11 = texture2D (_MainTex5, i.uv);
|
|
vec4 tmpvar_12;
|
|
tmpvar_12 = (col + tmpvar_11);
|
|
col = tmpvar_12;
|
|
vec4 tmpvar_13;
|
|
tmpvar_13 = texture2D (_MainTex6, i.uv);
|
|
vec4 tmpvar_14;
|
|
tmpvar_14 = (col + tmpvar_13);
|
|
col = tmpvar_14;
|
|
vec4 tmpvar_15;
|
|
tmpvar_15 = texture2D (_MainTex7, i.uv);
|
|
vec4 tmpvar_16;
|
|
tmpvar_16 = (col + tmpvar_15);
|
|
col = tmpvar_16;
|
|
vec4 tmpvar_17;
|
|
tmpvar_17 = texture2D (_MainTex8, i.uv);
|
|
vec4 tmpvar_18;
|
|
tmpvar_18 = (col + tmpvar_17);
|
|
col = tmpvar_18;
|
|
vec4 tmpvar_19;
|
|
tmpvar_19 = texture2D (_MainTex9, i.uv);
|
|
vec4 tmpvar_20;
|
|
tmpvar_20 = (col + tmpvar_19);
|
|
col = tmpvar_20;
|
|
vec4 tmpvar_21;
|
|
tmpvar_21 = texture2D (_MainTex10, i.uv);
|
|
vec4 tmpvar_22;
|
|
tmpvar_22 = (col + tmpvar_21);
|
|
col = tmpvar_22;
|
|
vec4 tmpvar_23;
|
|
tmpvar_23 = texture2D (_MainTex11, i.uv);
|
|
vec4 tmpvar_24;
|
|
tmpvar_24 = (col + tmpvar_23);
|
|
col = tmpvar_24;
|
|
vec4 tmpvar_25;
|
|
tmpvar_25 = texture2D (_MainTex12, i.uv);
|
|
vec4 tmpvar_26;
|
|
tmpvar_26 = (col + tmpvar_25);
|
|
col = tmpvar_26;
|
|
vec4 tmpvar_27;
|
|
tmpvar_27 = texture2D (_MainTex13, i.uv);
|
|
vec4 tmpvar_28;
|
|
tmpvar_28 = (col + tmpvar_27);
|
|
col = tmpvar_28;
|
|
vec4 tmpvar_29;
|
|
tmpvar_29 = texture2D (_MainTex14, i.uv);
|
|
vec4 tmpvar_30;
|
|
tmpvar_30 = (col + tmpvar_29);
|
|
col = tmpvar_30;
|
|
vec4 tmpvar_31;
|
|
tmpvar_31 = texture2D (_MainTex15, i.uv);
|
|
vec4 tmpvar_32;
|
|
tmpvar_32 = (col + tmpvar_31);
|
|
col = tmpvar_32;
|
|
return col;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
v2f xlt_i;
|
|
vec4 xl_retval;
|
|
vec4 tmpvar_1;
|
|
tmpvar_1 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
xlt_i.pos = tmpvar_1;
|
|
vec2 tmpvar_2;
|
|
tmpvar_2 = gl_TexCoord[0].xy;
|
|
vec2 tmpvar_3;
|
|
tmpvar_3 = tmpvar_2;
|
|
xlt_i.uv = tmpvar_3;
|
|
vec4 tmpvar_4;
|
|
tmpvar_4 = frag (xlt_i);
|
|
vec4 tmpvar_5;
|
|
tmpvar_5 = tmpvar_4;
|
|
xl_retval = tmpvar_5;
|
|
vec4 tmpvar_6;
|
|
tmpvar_6 = xl_retval.xyzw;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7 = tmpvar_6;
|
|
gl_FragData[0] = tmpvar_7;
|
|
}
|
|
|