mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-11 16:51:32 -05:00
255 lines
5 KiB
Text
255 lines
5 KiB
Text
#extension GL_OES_standard_derivatives : enable
|
|
varying highp vec4 xlv_TEXCOORD0;
|
|
mediump float xll_dFdx (
|
|
in mediump float f_1
|
|
)
|
|
{
|
|
mediump float tmpvar_2;
|
|
tmpvar_2 = dFdx (f_1);
|
|
return tmpvar_2;
|
|
}
|
|
|
|
mediump vec2 xll_dFdx (
|
|
in mediump vec2 v_3
|
|
)
|
|
{
|
|
mediump vec2 tmpvar_4;
|
|
tmpvar_4 = dFdx (v_3);
|
|
return tmpvar_4;
|
|
}
|
|
|
|
mediump vec3 xll_dFdx (
|
|
in mediump vec3 v_5
|
|
)
|
|
{
|
|
mediump vec3 tmpvar_6;
|
|
tmpvar_6 = dFdx (v_5);
|
|
return tmpvar_6;
|
|
}
|
|
|
|
mediump vec4 xll_dFdx (
|
|
in mediump vec4 v_7
|
|
)
|
|
{
|
|
mediump vec4 tmpvar_8;
|
|
tmpvar_8 = dFdx (v_7);
|
|
return tmpvar_8;
|
|
}
|
|
|
|
mediump mat2 xll_dFdx (
|
|
in mediump mat2 m_9
|
|
)
|
|
{
|
|
mediump vec2 tmpvar_10;
|
|
tmpvar_10 = dFdx (m_9[0]);
|
|
mediump vec2 tmpvar_11;
|
|
tmpvar_11 = dFdx (m_9[1]);
|
|
mediump mat2 tmpvar_12;
|
|
mediump vec2 tmpvar_13;
|
|
tmpvar_13 = tmpvar_10;
|
|
tmpvar_12[0] = tmpvar_13;
|
|
mediump vec2 tmpvar_14;
|
|
tmpvar_14 = tmpvar_11;
|
|
tmpvar_12[1] = tmpvar_14;
|
|
return tmpvar_12;
|
|
}
|
|
|
|
mediump mat3 xll_dFdx (
|
|
in mediump mat3 m_15
|
|
)
|
|
{
|
|
mediump vec3 tmpvar_16;
|
|
tmpvar_16 = dFdx (m_15[0]);
|
|
mediump vec3 tmpvar_17;
|
|
tmpvar_17 = dFdx (m_15[1]);
|
|
mediump vec3 tmpvar_18;
|
|
tmpvar_18 = dFdx (m_15[2]);
|
|
mediump mat3 tmpvar_19;
|
|
mediump vec3 tmpvar_20;
|
|
tmpvar_20 = tmpvar_16;
|
|
tmpvar_19[0] = tmpvar_20;
|
|
mediump vec3 tmpvar_21;
|
|
tmpvar_21 = tmpvar_17;
|
|
tmpvar_19[1] = tmpvar_21;
|
|
mediump vec3 tmpvar_22;
|
|
tmpvar_22 = tmpvar_18;
|
|
tmpvar_19[2] = tmpvar_22;
|
|
return tmpvar_19;
|
|
}
|
|
|
|
mediump mat4 xll_dFdx (
|
|
in mediump mat4 m_23
|
|
)
|
|
{
|
|
mediump vec4 tmpvar_24;
|
|
tmpvar_24 = dFdx (m_23[0]);
|
|
mediump vec4 tmpvar_25;
|
|
tmpvar_25 = dFdx (m_23[1]);
|
|
mediump vec4 tmpvar_26;
|
|
tmpvar_26 = dFdx (m_23[2]);
|
|
mediump vec4 tmpvar_27;
|
|
tmpvar_27 = dFdx (m_23[3]);
|
|
mediump mat4 tmpvar_28;
|
|
mediump vec4 tmpvar_29;
|
|
tmpvar_29 = tmpvar_24;
|
|
tmpvar_28[0] = tmpvar_29;
|
|
mediump vec4 tmpvar_30;
|
|
tmpvar_30 = tmpvar_25;
|
|
tmpvar_28[1] = tmpvar_30;
|
|
mediump vec4 tmpvar_31;
|
|
tmpvar_31 = tmpvar_26;
|
|
tmpvar_28[2] = tmpvar_31;
|
|
mediump vec4 tmpvar_32;
|
|
tmpvar_32 = tmpvar_27;
|
|
tmpvar_28[3] = tmpvar_32;
|
|
return tmpvar_28;
|
|
}
|
|
|
|
mediump float xll_fwidth (
|
|
in mediump float f_33
|
|
)
|
|
{
|
|
mediump float tmpvar_34;
|
|
tmpvar_34 = fwidth (f_33);
|
|
return tmpvar_34;
|
|
}
|
|
|
|
mediump vec2 xll_fwidth (
|
|
in mediump vec2 v_35
|
|
)
|
|
{
|
|
mediump vec2 tmpvar_36;
|
|
tmpvar_36 = fwidth (v_35);
|
|
return tmpvar_36;
|
|
}
|
|
|
|
mediump vec3 xll_fwidth (
|
|
in mediump vec3 v_37
|
|
)
|
|
{
|
|
mediump vec3 tmpvar_38;
|
|
tmpvar_38 = fwidth (v_37);
|
|
return tmpvar_38;
|
|
}
|
|
|
|
mediump vec4 xll_fwidth (
|
|
in mediump vec4 v_39
|
|
)
|
|
{
|
|
mediump vec4 tmpvar_40;
|
|
tmpvar_40 = fwidth (v_39);
|
|
return tmpvar_40;
|
|
}
|
|
|
|
mediump mat2 xll_fwidth (
|
|
in mediump mat2 m_41
|
|
)
|
|
{
|
|
mediump vec2 tmpvar_42;
|
|
tmpvar_42 = fwidth (m_41[0]);
|
|
mediump vec2 tmpvar_43;
|
|
tmpvar_43 = fwidth (m_41[1]);
|
|
mediump mat2 tmpvar_44;
|
|
mediump vec2 tmpvar_45;
|
|
tmpvar_45 = tmpvar_42;
|
|
tmpvar_44[0] = tmpvar_45;
|
|
mediump vec2 tmpvar_46;
|
|
tmpvar_46 = tmpvar_43;
|
|
tmpvar_44[1] = tmpvar_46;
|
|
return tmpvar_44;
|
|
}
|
|
|
|
mediump mat3 xll_fwidth (
|
|
in mediump mat3 m_47
|
|
)
|
|
{
|
|
mediump vec3 tmpvar_48;
|
|
tmpvar_48 = fwidth (m_47[0]);
|
|
mediump vec3 tmpvar_49;
|
|
tmpvar_49 = fwidth (m_47[1]);
|
|
mediump vec3 tmpvar_50;
|
|
tmpvar_50 = fwidth (m_47[2]);
|
|
mediump mat3 tmpvar_51;
|
|
mediump vec3 tmpvar_52;
|
|
tmpvar_52 = tmpvar_48;
|
|
tmpvar_51[0] = tmpvar_52;
|
|
mediump vec3 tmpvar_53;
|
|
tmpvar_53 = tmpvar_49;
|
|
tmpvar_51[1] = tmpvar_53;
|
|
mediump vec3 tmpvar_54;
|
|
tmpvar_54 = tmpvar_50;
|
|
tmpvar_51[2] = tmpvar_54;
|
|
return tmpvar_51;
|
|
}
|
|
|
|
mediump mat4 xll_fwidth (
|
|
in mediump mat4 m_55
|
|
)
|
|
{
|
|
mediump vec4 tmpvar_56;
|
|
tmpvar_56 = fwidth (m_55[0]);
|
|
mediump vec4 tmpvar_57;
|
|
tmpvar_57 = fwidth (m_55[1]);
|
|
mediump vec4 tmpvar_58;
|
|
tmpvar_58 = fwidth (m_55[2]);
|
|
mediump vec4 tmpvar_59;
|
|
tmpvar_59 = fwidth (m_55[3]);
|
|
mediump mat4 tmpvar_60;
|
|
mediump vec4 tmpvar_61;
|
|
tmpvar_61 = tmpvar_56;
|
|
tmpvar_60[0] = tmpvar_61;
|
|
mediump vec4 tmpvar_62;
|
|
tmpvar_62 = tmpvar_57;
|
|
tmpvar_60[1] = tmpvar_62;
|
|
mediump vec4 tmpvar_63;
|
|
tmpvar_63 = tmpvar_58;
|
|
tmpvar_60[2] = tmpvar_63;
|
|
mediump vec4 tmpvar_64;
|
|
tmpvar_64 = tmpvar_59;
|
|
tmpvar_60[3] = tmpvar_64;
|
|
return tmpvar_60;
|
|
}
|
|
|
|
mediump vec4 xlat_main (
|
|
in highp vec4 uv_65
|
|
)
|
|
{
|
|
lowp vec4 res_66;
|
|
mediump float tmpvar_67;
|
|
tmpvar_67 = xll_dFdx (uv_65.x);
|
|
mediump float tmpvar_68;
|
|
tmpvar_68 = tmpvar_67;
|
|
res_66.x = tmpvar_68;
|
|
mediump float tmpvar_69;
|
|
tmpvar_69 = xll_dFdx (uv_65.y);
|
|
mediump float tmpvar_70;
|
|
tmpvar_70 = tmpvar_69;
|
|
res_66.y = vec2(tmpvar_70).y;
|
|
mediump float tmpvar_71;
|
|
tmpvar_71 = xll_fwidth (uv_65.z);
|
|
mediump float tmpvar_72;
|
|
tmpvar_72 = tmpvar_71;
|
|
res_66.z = vec3(tmpvar_72).z;
|
|
mediump float tmpvar_73;
|
|
tmpvar_73 = 1.0;
|
|
res_66.w = vec4(tmpvar_73).w;
|
|
return res_66;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
mediump vec4 xl_retval_74;
|
|
highp vec4 tmpvar_75;
|
|
tmpvar_75 = xlv_TEXCOORD0.xyzw;
|
|
mediump vec4 tmpvar_76;
|
|
tmpvar_76 = xlat_main (tmpvar_75);
|
|
mediump vec4 tmpvar_77;
|
|
tmpvar_77 = tmpvar_76;
|
|
xl_retval_74 = tmpvar_77;
|
|
mediump vec4 tmpvar_78;
|
|
tmpvar_78 = xl_retval_74.xyzw;
|
|
mediump vec4 tmpvar_79;
|
|
tmpvar_79 = tmpvar_78;
|
|
gl_FragData[0] = tmpvar_79;
|
|
}
|
|
|