mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
255 lines
4.4 KiB
Text
255 lines
4.4 KiB
Text
#extension GL_OES_standard_derivatives : enable
|
|
varying highp vec4 xlv_TEXCOORD0;
|
|
float xll_dFdx (
|
|
in float f_1
|
|
)
|
|
{
|
|
float tmpvar_2;
|
|
tmpvar_2 = dFdx (f_1);
|
|
return tmpvar_2;
|
|
}
|
|
|
|
vec2 xll_dFdx (
|
|
in vec2 v_3
|
|
)
|
|
{
|
|
vec2 tmpvar_4;
|
|
tmpvar_4 = dFdx (v_3);
|
|
return tmpvar_4;
|
|
}
|
|
|
|
vec3 xll_dFdx (
|
|
in vec3 v_5
|
|
)
|
|
{
|
|
vec3 tmpvar_6;
|
|
tmpvar_6 = dFdx (v_5);
|
|
return tmpvar_6;
|
|
}
|
|
|
|
vec4 xll_dFdx (
|
|
in vec4 v_7
|
|
)
|
|
{
|
|
vec4 tmpvar_8;
|
|
tmpvar_8 = dFdx (v_7);
|
|
return tmpvar_8;
|
|
}
|
|
|
|
mat2 xll_dFdx (
|
|
in mat2 m_9
|
|
)
|
|
{
|
|
vec2 tmpvar_10;
|
|
tmpvar_10 = dFdx (m_9[0]);
|
|
vec2 tmpvar_11;
|
|
tmpvar_11 = dFdx (m_9[1]);
|
|
mat2 tmpvar_12;
|
|
vec2 tmpvar_13;
|
|
tmpvar_13 = tmpvar_10;
|
|
tmpvar_12[0] = tmpvar_13;
|
|
vec2 tmpvar_14;
|
|
tmpvar_14 = tmpvar_11;
|
|
tmpvar_12[1] = tmpvar_14;
|
|
return tmpvar_12;
|
|
}
|
|
|
|
mat3 xll_dFdx (
|
|
in mat3 m_15
|
|
)
|
|
{
|
|
vec3 tmpvar_16;
|
|
tmpvar_16 = dFdx (m_15[0]);
|
|
vec3 tmpvar_17;
|
|
tmpvar_17 = dFdx (m_15[1]);
|
|
vec3 tmpvar_18;
|
|
tmpvar_18 = dFdx (m_15[2]);
|
|
mat3 tmpvar_19;
|
|
vec3 tmpvar_20;
|
|
tmpvar_20 = tmpvar_16;
|
|
tmpvar_19[0] = tmpvar_20;
|
|
vec3 tmpvar_21;
|
|
tmpvar_21 = tmpvar_17;
|
|
tmpvar_19[1] = tmpvar_21;
|
|
vec3 tmpvar_22;
|
|
tmpvar_22 = tmpvar_18;
|
|
tmpvar_19[2] = tmpvar_22;
|
|
return tmpvar_19;
|
|
}
|
|
|
|
mat4 xll_dFdx (
|
|
in mat4 m_23
|
|
)
|
|
{
|
|
vec4 tmpvar_24;
|
|
tmpvar_24 = dFdx (m_23[0]);
|
|
vec4 tmpvar_25;
|
|
tmpvar_25 = dFdx (m_23[1]);
|
|
vec4 tmpvar_26;
|
|
tmpvar_26 = dFdx (m_23[2]);
|
|
vec4 tmpvar_27;
|
|
tmpvar_27 = dFdx (m_23[3]);
|
|
mat4 tmpvar_28;
|
|
vec4 tmpvar_29;
|
|
tmpvar_29 = tmpvar_24;
|
|
tmpvar_28[0] = tmpvar_29;
|
|
vec4 tmpvar_30;
|
|
tmpvar_30 = tmpvar_25;
|
|
tmpvar_28[1] = tmpvar_30;
|
|
vec4 tmpvar_31;
|
|
tmpvar_31 = tmpvar_26;
|
|
tmpvar_28[2] = tmpvar_31;
|
|
vec4 tmpvar_32;
|
|
tmpvar_32 = tmpvar_27;
|
|
tmpvar_28[3] = tmpvar_32;
|
|
return tmpvar_28;
|
|
}
|
|
|
|
float xll_fwidth (
|
|
in float f_33
|
|
)
|
|
{
|
|
float tmpvar_34;
|
|
tmpvar_34 = fwidth (f_33);
|
|
return tmpvar_34;
|
|
}
|
|
|
|
vec2 xll_fwidth (
|
|
in vec2 v_35
|
|
)
|
|
{
|
|
vec2 tmpvar_36;
|
|
tmpvar_36 = fwidth (v_35);
|
|
return tmpvar_36;
|
|
}
|
|
|
|
vec3 xll_fwidth (
|
|
in vec3 v_37
|
|
)
|
|
{
|
|
vec3 tmpvar_38;
|
|
tmpvar_38 = fwidth (v_37);
|
|
return tmpvar_38;
|
|
}
|
|
|
|
vec4 xll_fwidth (
|
|
in vec4 v_39
|
|
)
|
|
{
|
|
vec4 tmpvar_40;
|
|
tmpvar_40 = fwidth (v_39);
|
|
return tmpvar_40;
|
|
}
|
|
|
|
mat2 xll_fwidth (
|
|
in mat2 m_41
|
|
)
|
|
{
|
|
vec2 tmpvar_42;
|
|
tmpvar_42 = fwidth (m_41[0]);
|
|
vec2 tmpvar_43;
|
|
tmpvar_43 = fwidth (m_41[1]);
|
|
mat2 tmpvar_44;
|
|
vec2 tmpvar_45;
|
|
tmpvar_45 = tmpvar_42;
|
|
tmpvar_44[0] = tmpvar_45;
|
|
vec2 tmpvar_46;
|
|
tmpvar_46 = tmpvar_43;
|
|
tmpvar_44[1] = tmpvar_46;
|
|
return tmpvar_44;
|
|
}
|
|
|
|
mat3 xll_fwidth (
|
|
in mat3 m_47
|
|
)
|
|
{
|
|
vec3 tmpvar_48;
|
|
tmpvar_48 = fwidth (m_47[0]);
|
|
vec3 tmpvar_49;
|
|
tmpvar_49 = fwidth (m_47[1]);
|
|
vec3 tmpvar_50;
|
|
tmpvar_50 = fwidth (m_47[2]);
|
|
mat3 tmpvar_51;
|
|
vec3 tmpvar_52;
|
|
tmpvar_52 = tmpvar_48;
|
|
tmpvar_51[0] = tmpvar_52;
|
|
vec3 tmpvar_53;
|
|
tmpvar_53 = tmpvar_49;
|
|
tmpvar_51[1] = tmpvar_53;
|
|
vec3 tmpvar_54;
|
|
tmpvar_54 = tmpvar_50;
|
|
tmpvar_51[2] = tmpvar_54;
|
|
return tmpvar_51;
|
|
}
|
|
|
|
mat4 xll_fwidth (
|
|
in mat4 m_55
|
|
)
|
|
{
|
|
vec4 tmpvar_56;
|
|
tmpvar_56 = fwidth (m_55[0]);
|
|
vec4 tmpvar_57;
|
|
tmpvar_57 = fwidth (m_55[1]);
|
|
vec4 tmpvar_58;
|
|
tmpvar_58 = fwidth (m_55[2]);
|
|
vec4 tmpvar_59;
|
|
tmpvar_59 = fwidth (m_55[3]);
|
|
mat4 tmpvar_60;
|
|
vec4 tmpvar_61;
|
|
tmpvar_61 = tmpvar_56;
|
|
tmpvar_60[0] = tmpvar_61;
|
|
vec4 tmpvar_62;
|
|
tmpvar_62 = tmpvar_57;
|
|
tmpvar_60[1] = tmpvar_62;
|
|
vec4 tmpvar_63;
|
|
tmpvar_63 = tmpvar_58;
|
|
tmpvar_60[2] = tmpvar_63;
|
|
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;
|
|
float tmpvar_67;
|
|
tmpvar_67 = xll_dFdx (uv_65.x);
|
|
float tmpvar_68;
|
|
tmpvar_68 = tmpvar_67;
|
|
res_66.x = tmpvar_68;
|
|
float tmpvar_69;
|
|
tmpvar_69 = xll_dFdx (uv_65.y);
|
|
float tmpvar_70;
|
|
tmpvar_70 = tmpvar_69;
|
|
res_66.y = vec2(tmpvar_70).y;
|
|
float tmpvar_71;
|
|
tmpvar_71 = xll_fwidth (uv_65.z);
|
|
float tmpvar_72;
|
|
tmpvar_72 = tmpvar_71;
|
|
res_66.z = vec3(tmpvar_72).z;
|
|
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;
|
|
}
|
|
|