mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
133 lines
3.2 KiB
Text
133 lines
3.2 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_1
|
||
|
)
|
||
|
{
|
||
|
vec4 col_2;
|
||
|
vec4 tmpvar_3;
|
||
|
tmpvar_3 = texture2D (_MainTex0, i_1.uv);
|
||
|
vec4 tmpvar_4;
|
||
|
tmpvar_4 = tmpvar_3;
|
||
|
col_2 = tmpvar_4;
|
||
|
vec4 tmpvar_5;
|
||
|
tmpvar_5 = texture2D (_MainTex1, i_1.uv);
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6 = (col_2 + tmpvar_5);
|
||
|
col_2 = tmpvar_6;
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = texture2D (_MainTex2, i_1.uv);
|
||
|
vec4 tmpvar_8;
|
||
|
tmpvar_8 = (col_2 + tmpvar_7);
|
||
|
col_2 = tmpvar_8;
|
||
|
vec4 tmpvar_9;
|
||
|
tmpvar_9 = texture2D (_MainTex3, i_1.uv);
|
||
|
vec4 tmpvar_10;
|
||
|
tmpvar_10 = (col_2 + tmpvar_9);
|
||
|
col_2 = tmpvar_10;
|
||
|
vec4 tmpvar_11;
|
||
|
tmpvar_11 = texture2D (_MainTex4, i_1.uv);
|
||
|
vec4 tmpvar_12;
|
||
|
tmpvar_12 = (col_2 + tmpvar_11);
|
||
|
col_2 = tmpvar_12;
|
||
|
vec4 tmpvar_13;
|
||
|
tmpvar_13 = texture2D (_MainTex5, i_1.uv);
|
||
|
vec4 tmpvar_14;
|
||
|
tmpvar_14 = (col_2 + tmpvar_13);
|
||
|
col_2 = tmpvar_14;
|
||
|
vec4 tmpvar_15;
|
||
|
tmpvar_15 = texture2D (_MainTex6, i_1.uv);
|
||
|
vec4 tmpvar_16;
|
||
|
tmpvar_16 = (col_2 + tmpvar_15);
|
||
|
col_2 = tmpvar_16;
|
||
|
vec4 tmpvar_17;
|
||
|
tmpvar_17 = texture2D (_MainTex7, i_1.uv);
|
||
|
vec4 tmpvar_18;
|
||
|
tmpvar_18 = (col_2 + tmpvar_17);
|
||
|
col_2 = tmpvar_18;
|
||
|
vec4 tmpvar_19;
|
||
|
tmpvar_19 = texture2D (_MainTex8, i_1.uv);
|
||
|
vec4 tmpvar_20;
|
||
|
tmpvar_20 = (col_2 + tmpvar_19);
|
||
|
col_2 = tmpvar_20;
|
||
|
vec4 tmpvar_21;
|
||
|
tmpvar_21 = texture2D (_MainTex9, i_1.uv);
|
||
|
vec4 tmpvar_22;
|
||
|
tmpvar_22 = (col_2 + tmpvar_21);
|
||
|
col_2 = tmpvar_22;
|
||
|
vec4 tmpvar_23;
|
||
|
tmpvar_23 = texture2D (_MainTex10, i_1.uv);
|
||
|
vec4 tmpvar_24;
|
||
|
tmpvar_24 = (col_2 + tmpvar_23);
|
||
|
col_2 = tmpvar_24;
|
||
|
vec4 tmpvar_25;
|
||
|
tmpvar_25 = texture2D (_MainTex11, i_1.uv);
|
||
|
vec4 tmpvar_26;
|
||
|
tmpvar_26 = (col_2 + tmpvar_25);
|
||
|
col_2 = tmpvar_26;
|
||
|
vec4 tmpvar_27;
|
||
|
tmpvar_27 = texture2D (_MainTex12, i_1.uv);
|
||
|
vec4 tmpvar_28;
|
||
|
tmpvar_28 = (col_2 + tmpvar_27);
|
||
|
col_2 = tmpvar_28;
|
||
|
vec4 tmpvar_29;
|
||
|
tmpvar_29 = texture2D (_MainTex13, i_1.uv);
|
||
|
vec4 tmpvar_30;
|
||
|
tmpvar_30 = (col_2 + tmpvar_29);
|
||
|
col_2 = tmpvar_30;
|
||
|
vec4 tmpvar_31;
|
||
|
tmpvar_31 = texture2D (_MainTex14, i_1.uv);
|
||
|
vec4 tmpvar_32;
|
||
|
tmpvar_32 = (col_2 + tmpvar_31);
|
||
|
col_2 = tmpvar_32;
|
||
|
vec4 tmpvar_33;
|
||
|
tmpvar_33 = texture2D (_MainTex15, i_1.uv);
|
||
|
vec4 tmpvar_34;
|
||
|
tmpvar_34 = (col_2 + tmpvar_33);
|
||
|
col_2 = tmpvar_34;
|
||
|
return col_2;
|
||
|
}
|
||
|
|
||
|
void main ()
|
||
|
{
|
||
|
v2f xlt_i_35;
|
||
|
vec4 xl_retval_36;
|
||
|
vec4 tmpvar_37;
|
||
|
tmpvar_37 = vec4(0.0, 0.0, 0.0, 0.0);
|
||
|
xlt_i_35.pos = tmpvar_37;
|
||
|
vec2 tmpvar_38;
|
||
|
tmpvar_38 = gl_TexCoord[0].xy;
|
||
|
vec2 tmpvar_39;
|
||
|
tmpvar_39 = tmpvar_38;
|
||
|
xlt_i_35.uv = tmpvar_39;
|
||
|
vec4 tmpvar_40;
|
||
|
tmpvar_40 = frag (xlt_i_35);
|
||
|
vec4 tmpvar_41;
|
||
|
tmpvar_41 = tmpvar_40;
|
||
|
xl_retval_36 = tmpvar_41;
|
||
|
vec4 tmpvar_42;
|
||
|
tmpvar_42 = xl_retval_36.xyzw;
|
||
|
vec4 tmpvar_43;
|
||
|
tmpvar_43 = tmpvar_42;
|
||
|
gl_FragData[0] = tmpvar_43;
|
||
|
}
|
||
|
|