mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
1543 lines
44 KiB
Text
1543 lines
44 KiB
Text
|
#extension GL_ARB_shader_texture_lod : enable
|
||
|
struct v2f {
|
||
|
vec4 pos;
|
||
|
vec2 uv;
|
||
|
vec4 uvPosPos;
|
||
|
};
|
||
|
varying vec4 xlv_TEXCOORD1;
|
||
|
varying vec2 xlv_TEXCOORD0;
|
||
|
varying vec4 xlv_SV_POSITION;
|
||
|
uniform vec4 _MainTex_TexelSize;
|
||
|
uniform sampler2D _MainTex;
|
||
|
vec4 xll_tex2Dlod (
|
||
|
in sampler2D s,
|
||
|
in vec4 coord
|
||
|
)
|
||
|
{
|
||
|
vec4 tmpvar_1;
|
||
|
tmpvar_1 = texture2DLod (s, coord.xy, coord.w);
|
||
|
return tmpvar_1;
|
||
|
}
|
||
|
|
||
|
float xll_saturate (
|
||
|
in float x
|
||
|
)
|
||
|
{
|
||
|
float tmpvar_1;
|
||
|
tmpvar_1 = clamp (x, 0.0, 1.0);
|
||
|
return tmpvar_1;
|
||
|
}
|
||
|
|
||
|
vec2 xll_saturate (
|
||
|
in vec2 x
|
||
|
)
|
||
|
{
|
||
|
vec2 tmpvar_1;
|
||
|
tmpvar_1 = clamp (x, 0.0, 1.0);
|
||
|
return tmpvar_1;
|
||
|
}
|
||
|
|
||
|
vec3 xll_saturate (
|
||
|
in vec3 x
|
||
|
)
|
||
|
{
|
||
|
vec3 tmpvar_1;
|
||
|
tmpvar_1 = clamp (x, 0.0, 1.0);
|
||
|
return tmpvar_1;
|
||
|
}
|
||
|
|
||
|
vec4 xll_saturate (
|
||
|
in vec4 x
|
||
|
)
|
||
|
{
|
||
|
vec4 tmpvar_1;
|
||
|
tmpvar_1 = clamp (x, 0.0, 1.0);
|
||
|
return tmpvar_1;
|
||
|
}
|
||
|
|
||
|
mat2 xll_saturate (
|
||
|
in mat2 m
|
||
|
)
|
||
|
{
|
||
|
vec2 tmpvar_1;
|
||
|
tmpvar_1 = clamp (m[0], 0.0, 1.0);
|
||
|
vec2 tmpvar_2;
|
||
|
tmpvar_2 = clamp (m[1], 0.0, 1.0);
|
||
|
mat2 tmpvar_3;
|
||
|
vec2 tmpvar_4;
|
||
|
tmpvar_4 = tmpvar_1;
|
||
|
tmpvar_3[0] = tmpvar_4;
|
||
|
vec2 tmpvar_5;
|
||
|
tmpvar_5 = tmpvar_2;
|
||
|
tmpvar_3[1] = tmpvar_5;
|
||
|
return tmpvar_3;
|
||
|
}
|
||
|
|
||
|
mat3 xll_saturate (
|
||
|
in mat3 m
|
||
|
)
|
||
|
{
|
||
|
vec3 tmpvar_1;
|
||
|
tmpvar_1 = clamp (m[0], 0.0, 1.0);
|
||
|
vec3 tmpvar_2;
|
||
|
tmpvar_2 = clamp (m[1], 0.0, 1.0);
|
||
|
vec3 tmpvar_3;
|
||
|
tmpvar_3 = clamp (m[2], 0.0, 1.0);
|
||
|
mat3 tmpvar_4;
|
||
|
vec3 tmpvar_5;
|
||
|
tmpvar_5 = tmpvar_1;
|
||
|
tmpvar_4[0] = tmpvar_5;
|
||
|
vec3 tmpvar_6;
|
||
|
tmpvar_6 = tmpvar_2;
|
||
|
tmpvar_4[1] = tmpvar_6;
|
||
|
vec3 tmpvar_7;
|
||
|
tmpvar_7 = tmpvar_3;
|
||
|
tmpvar_4[2] = tmpvar_7;
|
||
|
return tmpvar_4;
|
||
|
}
|
||
|
|
||
|
mat4 xll_saturate (
|
||
|
in mat4 m
|
||
|
)
|
||
|
{
|
||
|
vec4 tmpvar_1;
|
||
|
tmpvar_1 = clamp (m[0], 0.0, 1.0);
|
||
|
vec4 tmpvar_2;
|
||
|
tmpvar_2 = clamp (m[1], 0.0, 1.0);
|
||
|
vec4 tmpvar_3;
|
||
|
tmpvar_3 = clamp (m[2], 0.0, 1.0);
|
||
|
vec4 tmpvar_4;
|
||
|
tmpvar_4 = clamp (m[3], 0.0, 1.0);
|
||
|
mat4 tmpvar_5;
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6 = tmpvar_1;
|
||
|
tmpvar_5[0] = tmpvar_6;
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = tmpvar_2;
|
||
|
tmpvar_5[1] = tmpvar_7;
|
||
|
vec4 tmpvar_8;
|
||
|
tmpvar_8 = tmpvar_3;
|
||
|
tmpvar_5[2] = tmpvar_8;
|
||
|
vec4 tmpvar_9;
|
||
|
tmpvar_9 = tmpvar_4;
|
||
|
tmpvar_5[3] = tmpvar_9;
|
||
|
return tmpvar_5;
|
||
|
}
|
||
|
|
||
|
float FxaaLuma (
|
||
|
in vec4 rgba
|
||
|
)
|
||
|
{
|
||
|
return rgba.w;
|
||
|
}
|
||
|
|
||
|
vec4 FxaaPixelShader (
|
||
|
in vec2 pos,
|
||
|
in vec4 fxaaConsolePosPos,
|
||
|
in sampler2D tex,
|
||
|
in sampler2D fxaaConsole360TexExpBiasNegOne,
|
||
|
in sampler2D fxaaConsole360TexExpBiasNegTwo,
|
||
|
in vec2 fxaaQualityRcpFrame,
|
||
|
in vec4 fxaaConsoleRcpFrameOpt,
|
||
|
in vec4 fxaaConsoleRcpFrameOpt2,
|
||
|
in vec4 fxaaConsole360RcpFrameOpt2,
|
||
|
in float fxaaQualitySubpix,
|
||
|
in float fxaaQualityEdgeThreshold,
|
||
|
in float fxaaQualityEdgeThresholdMin,
|
||
|
in float fxaaConsoleEdgeSharpness,
|
||
|
in float fxaaConsoleEdgeThreshold,
|
||
|
in float fxaaConsoleEdgeThresholdMin,
|
||
|
in vec4 fxaaConsole360ConstDir
|
||
|
)
|
||
|
{
|
||
|
float pixelOffsetSubpix;
|
||
|
float pixelOffsetGood;
|
||
|
float subpixH;
|
||
|
float pixelOffset;
|
||
|
float subpixG;
|
||
|
bool goodSpan;
|
||
|
float dst;
|
||
|
bool directionN;
|
||
|
float spanLengthRcp;
|
||
|
bool goodSpanP;
|
||
|
float spanLength;
|
||
|
bool goodSpanN;
|
||
|
float dstP;
|
||
|
float dstN;
|
||
|
bool doneNP;
|
||
|
bool doneP;
|
||
|
bool doneN;
|
||
|
bool lumaMLTZero;
|
||
|
float subpixF;
|
||
|
float lumaMM;
|
||
|
float gradientScaled;
|
||
|
float lumaEndP;
|
||
|
float subpixE;
|
||
|
float lumaEndN;
|
||
|
float subpixD;
|
||
|
vec2 posP;
|
||
|
vec2 posN;
|
||
|
vec2 offNP;
|
||
|
vec2 posB;
|
||
|
float subpixC;
|
||
|
float gradient;
|
||
|
bool pairN;
|
||
|
float lumaSS;
|
||
|
float lumaNN;
|
||
|
float gradientS;
|
||
|
float gradientN;
|
||
|
float subpixB;
|
||
|
float subpixA;
|
||
|
bool horzSpan;
|
||
|
float lengthSign;
|
||
|
float subpixNWSWNESE;
|
||
|
float edgeVert;
|
||
|
float edgeHorz;
|
||
|
float edgeVert3;
|
||
|
float edgeHorz3;
|
||
|
float edgeVert4;
|
||
|
float edgeHorz4;
|
||
|
float lumaSWSE;
|
||
|
float lumaNWSW;
|
||
|
float edgeVert2;
|
||
|
float edgeHorz2;
|
||
|
float lumaNWNE;
|
||
|
float lumaNESE;
|
||
|
float edgeVert1;
|
||
|
float edgeHorz1;
|
||
|
float subpixNSWE;
|
||
|
float subpixRcpRange;
|
||
|
float lumaWE;
|
||
|
float lumaNS;
|
||
|
float lumaSW;
|
||
|
float lumaNE;
|
||
|
float lumaSE;
|
||
|
float lumaNW;
|
||
|
bool earlyExit;
|
||
|
float rangeMaxClamped;
|
||
|
float range;
|
||
|
float rangeMaxScaled;
|
||
|
float rangeMin;
|
||
|
float rangeMax;
|
||
|
float minWN;
|
||
|
float maxWN;
|
||
|
float minESM;
|
||
|
float maxESM;
|
||
|
float minSM;
|
||
|
float maxSM;
|
||
|
float lumaW;
|
||
|
float lumaN;
|
||
|
float lumaE;
|
||
|
float lumaS;
|
||
|
vec4 rgbyM;
|
||
|
vec2 posM;
|
||
|
float tmpvar_1;
|
||
|
tmpvar_1 = pos.x;
|
||
|
posM.x = tmpvar_1;
|
||
|
float tmpvar_2;
|
||
|
tmpvar_2 = pos.y;
|
||
|
posM.y = vec2(tmpvar_2).y;
|
||
|
vec4 tmpvar_3;
|
||
|
tmpvar_3.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_3.xy = posM.xy;
|
||
|
vec4 tmpvar_4;
|
||
|
tmpvar_4 = xll_tex2Dlod (tex, tmpvar_3);
|
||
|
vec4 tmpvar_5;
|
||
|
tmpvar_5 = tmpvar_4;
|
||
|
rgbyM = tmpvar_5;
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_6.xy = (posM + (vec2(0.0, 1.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = xll_tex2Dlod (tex, tmpvar_6);
|
||
|
float tmpvar_8;
|
||
|
tmpvar_8 = FxaaLuma (tmpvar_7);
|
||
|
float tmpvar_9;
|
||
|
tmpvar_9 = tmpvar_8;
|
||
|
lumaS = tmpvar_9;
|
||
|
vec4 tmpvar_10;
|
||
|
tmpvar_10.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_10.xy = (posM + (vec2(1.0, 0.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_11;
|
||
|
tmpvar_11 = xll_tex2Dlod (tex, tmpvar_10);
|
||
|
float tmpvar_12;
|
||
|
tmpvar_12 = FxaaLuma (tmpvar_11);
|
||
|
float tmpvar_13;
|
||
|
tmpvar_13 = tmpvar_12;
|
||
|
lumaE = tmpvar_13;
|
||
|
vec4 tmpvar_14;
|
||
|
tmpvar_14.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_14.xy = (posM + (vec2(0.0, -1.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_15;
|
||
|
tmpvar_15 = xll_tex2Dlod (tex, tmpvar_14);
|
||
|
float tmpvar_16;
|
||
|
tmpvar_16 = FxaaLuma (tmpvar_15);
|
||
|
float tmpvar_17;
|
||
|
tmpvar_17 = tmpvar_16;
|
||
|
lumaN = tmpvar_17;
|
||
|
vec4 tmpvar_18;
|
||
|
tmpvar_18.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_18.xy = (posM + (vec2(-1.0, 0.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_19;
|
||
|
tmpvar_19 = xll_tex2Dlod (tex, tmpvar_18);
|
||
|
float tmpvar_20;
|
||
|
tmpvar_20 = FxaaLuma (tmpvar_19);
|
||
|
float tmpvar_21;
|
||
|
tmpvar_21 = tmpvar_20;
|
||
|
lumaW = tmpvar_21;
|
||
|
float tmpvar_22;
|
||
|
tmpvar_22 = max (lumaS, rgbyM.w);
|
||
|
float tmpvar_23;
|
||
|
tmpvar_23 = tmpvar_22;
|
||
|
maxSM = tmpvar_23;
|
||
|
float tmpvar_24;
|
||
|
tmpvar_24 = min (lumaS, rgbyM.w);
|
||
|
float tmpvar_25;
|
||
|
tmpvar_25 = tmpvar_24;
|
||
|
minSM = tmpvar_25;
|
||
|
float tmpvar_26;
|
||
|
tmpvar_26 = max (lumaE, maxSM);
|
||
|
float tmpvar_27;
|
||
|
tmpvar_27 = tmpvar_26;
|
||
|
maxESM = tmpvar_27;
|
||
|
float tmpvar_28;
|
||
|
tmpvar_28 = min (lumaE, minSM);
|
||
|
float tmpvar_29;
|
||
|
tmpvar_29 = tmpvar_28;
|
||
|
minESM = tmpvar_29;
|
||
|
float tmpvar_30;
|
||
|
tmpvar_30 = max (lumaN, lumaW);
|
||
|
float tmpvar_31;
|
||
|
tmpvar_31 = tmpvar_30;
|
||
|
maxWN = tmpvar_31;
|
||
|
float tmpvar_32;
|
||
|
tmpvar_32 = min (lumaN, lumaW);
|
||
|
float tmpvar_33;
|
||
|
tmpvar_33 = tmpvar_32;
|
||
|
minWN = tmpvar_33;
|
||
|
float tmpvar_34;
|
||
|
tmpvar_34 = max (maxWN, maxESM);
|
||
|
float tmpvar_35;
|
||
|
tmpvar_35 = tmpvar_34;
|
||
|
rangeMax = tmpvar_35;
|
||
|
float tmpvar_36;
|
||
|
tmpvar_36 = min (minWN, minESM);
|
||
|
float tmpvar_37;
|
||
|
tmpvar_37 = tmpvar_36;
|
||
|
rangeMin = tmpvar_37;
|
||
|
float tmpvar_38;
|
||
|
tmpvar_38 = (rangeMax * fxaaQualityEdgeThreshold);
|
||
|
rangeMaxScaled = tmpvar_38;
|
||
|
float tmpvar_39;
|
||
|
tmpvar_39 = (rangeMax - rangeMin);
|
||
|
range = tmpvar_39;
|
||
|
float tmpvar_40;
|
||
|
tmpvar_40 = max (fxaaQualityEdgeThresholdMin, rangeMaxScaled);
|
||
|
float tmpvar_41;
|
||
|
tmpvar_41 = tmpvar_40;
|
||
|
rangeMaxClamped = tmpvar_41;
|
||
|
bool tmpvar_42;
|
||
|
tmpvar_42 = (range < rangeMaxClamped);
|
||
|
earlyExit = tmpvar_42;
|
||
|
if (earlyExit) {
|
||
|
return rgbyM;
|
||
|
};
|
||
|
vec4 tmpvar_43;
|
||
|
tmpvar_43.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_43.xy = (posM + (vec2(-1.0, -1.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_44;
|
||
|
tmpvar_44 = xll_tex2Dlod (tex, tmpvar_43);
|
||
|
float tmpvar_45;
|
||
|
tmpvar_45 = FxaaLuma (tmpvar_44);
|
||
|
float tmpvar_46;
|
||
|
tmpvar_46 = tmpvar_45;
|
||
|
lumaNW = tmpvar_46;
|
||
|
vec4 tmpvar_47;
|
||
|
tmpvar_47.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_47.xy = (posM + (vec2(1.0, 1.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_48;
|
||
|
tmpvar_48 = xll_tex2Dlod (tex, tmpvar_47);
|
||
|
float tmpvar_49;
|
||
|
tmpvar_49 = FxaaLuma (tmpvar_48);
|
||
|
float tmpvar_50;
|
||
|
tmpvar_50 = tmpvar_49;
|
||
|
lumaSE = tmpvar_50;
|
||
|
vec4 tmpvar_51;
|
||
|
tmpvar_51.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_51.xy = (posM + (vec2(1.0, -1.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_52;
|
||
|
tmpvar_52 = xll_tex2Dlod (tex, tmpvar_51);
|
||
|
float tmpvar_53;
|
||
|
tmpvar_53 = FxaaLuma (tmpvar_52);
|
||
|
float tmpvar_54;
|
||
|
tmpvar_54 = tmpvar_53;
|
||
|
lumaNE = tmpvar_54;
|
||
|
vec4 tmpvar_55;
|
||
|
tmpvar_55.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_55.xy = (posM + (vec2(-1.0, 1.0) * fxaaQualityRcpFrame.xy)).xy;
|
||
|
vec4 tmpvar_56;
|
||
|
tmpvar_56 = xll_tex2Dlod (tex, tmpvar_55);
|
||
|
float tmpvar_57;
|
||
|
tmpvar_57 = FxaaLuma (tmpvar_56);
|
||
|
float tmpvar_58;
|
||
|
tmpvar_58 = tmpvar_57;
|
||
|
lumaSW = tmpvar_58;
|
||
|
float tmpvar_59;
|
||
|
tmpvar_59 = (lumaN + lumaS);
|
||
|
lumaNS = tmpvar_59;
|
||
|
float tmpvar_60;
|
||
|
tmpvar_60 = (lumaW + lumaE);
|
||
|
lumaWE = tmpvar_60;
|
||
|
float tmpvar_61;
|
||
|
tmpvar_61 = (1.0 / range);
|
||
|
subpixRcpRange = tmpvar_61;
|
||
|
float tmpvar_62;
|
||
|
tmpvar_62 = (lumaNS + lumaWE);
|
||
|
subpixNSWE = tmpvar_62;
|
||
|
float tmpvar_63;
|
||
|
tmpvar_63 = ((-(2.0) * rgbyM.w) + lumaNS);
|
||
|
edgeHorz1 = tmpvar_63;
|
||
|
float tmpvar_64;
|
||
|
tmpvar_64 = ((-(2.0) * rgbyM.w) + lumaWE);
|
||
|
edgeVert1 = tmpvar_64;
|
||
|
float tmpvar_65;
|
||
|
tmpvar_65 = (lumaNE + lumaSE);
|
||
|
lumaNESE = tmpvar_65;
|
||
|
float tmpvar_66;
|
||
|
tmpvar_66 = (lumaNW + lumaNE);
|
||
|
lumaNWNE = tmpvar_66;
|
||
|
float tmpvar_67;
|
||
|
tmpvar_67 = ((-(2.0) * lumaE) + lumaNESE);
|
||
|
edgeHorz2 = tmpvar_67;
|
||
|
float tmpvar_68;
|
||
|
tmpvar_68 = ((-(2.0) * lumaN) + lumaNWNE);
|
||
|
edgeVert2 = tmpvar_68;
|
||
|
float tmpvar_69;
|
||
|
tmpvar_69 = (lumaNW + lumaSW);
|
||
|
lumaNWSW = tmpvar_69;
|
||
|
float tmpvar_70;
|
||
|
tmpvar_70 = (lumaSW + lumaSE);
|
||
|
lumaSWSE = tmpvar_70;
|
||
|
float tmpvar_71;
|
||
|
tmpvar_71 = abs (edgeHorz1);
|
||
|
float tmpvar_72;
|
||
|
tmpvar_72 = abs (edgeHorz2);
|
||
|
float tmpvar_73;
|
||
|
tmpvar_73 = ((tmpvar_71 * 2.0) + tmpvar_72);
|
||
|
edgeHorz4 = tmpvar_73;
|
||
|
float tmpvar_74;
|
||
|
tmpvar_74 = abs (edgeVert1);
|
||
|
float tmpvar_75;
|
||
|
tmpvar_75 = abs (edgeVert2);
|
||
|
float tmpvar_76;
|
||
|
tmpvar_76 = ((tmpvar_74 * 2.0) + tmpvar_75);
|
||
|
edgeVert4 = tmpvar_76;
|
||
|
float tmpvar_77;
|
||
|
tmpvar_77 = ((-(2.0) * lumaW) + lumaNWSW);
|
||
|
edgeHorz3 = tmpvar_77;
|
||
|
float tmpvar_78;
|
||
|
tmpvar_78 = ((-(2.0) * lumaS) + lumaSWSE);
|
||
|
edgeVert3 = tmpvar_78;
|
||
|
float tmpvar_79;
|
||
|
tmpvar_79 = abs (edgeHorz3);
|
||
|
float tmpvar_80;
|
||
|
tmpvar_80 = (tmpvar_79 + edgeHorz4);
|
||
|
edgeHorz = tmpvar_80;
|
||
|
float tmpvar_81;
|
||
|
tmpvar_81 = abs (edgeVert3);
|
||
|
float tmpvar_82;
|
||
|
tmpvar_82 = (tmpvar_81 + edgeVert4);
|
||
|
edgeVert = tmpvar_82;
|
||
|
float tmpvar_83;
|
||
|
tmpvar_83 = (lumaNWSW + lumaNESE);
|
||
|
subpixNWSWNESE = tmpvar_83;
|
||
|
float tmpvar_84;
|
||
|
tmpvar_84 = fxaaQualityRcpFrame.x;
|
||
|
lengthSign = tmpvar_84;
|
||
|
bool tmpvar_85;
|
||
|
tmpvar_85 = (edgeHorz >= edgeVert);
|
||
|
horzSpan = tmpvar_85;
|
||
|
float tmpvar_86;
|
||
|
tmpvar_86 = ((subpixNSWE * 2.0) + subpixNWSWNESE);
|
||
|
subpixA = tmpvar_86;
|
||
|
if (!(horzSpan)) {
|
||
|
float tmpvar_87;
|
||
|
tmpvar_87 = lumaW;
|
||
|
lumaN = tmpvar_87;
|
||
|
};
|
||
|
if (!(horzSpan)) {
|
||
|
float tmpvar_88;
|
||
|
tmpvar_88 = lumaE;
|
||
|
lumaS = tmpvar_88;
|
||
|
};
|
||
|
if (horzSpan) {
|
||
|
float tmpvar_89;
|
||
|
tmpvar_89 = fxaaQualityRcpFrame.y;
|
||
|
lengthSign = tmpvar_89;
|
||
|
};
|
||
|
float tmpvar_90;
|
||
|
tmpvar_90 = ((subpixA * 0.0833333) - rgbyM.w);
|
||
|
subpixB = tmpvar_90;
|
||
|
float tmpvar_91;
|
||
|
tmpvar_91 = (lumaN - rgbyM.w);
|
||
|
gradientN = tmpvar_91;
|
||
|
float tmpvar_92;
|
||
|
tmpvar_92 = (lumaS - rgbyM.w);
|
||
|
gradientS = tmpvar_92;
|
||
|
float tmpvar_93;
|
||
|
tmpvar_93 = (lumaN + rgbyM.w);
|
||
|
lumaNN = tmpvar_93;
|
||
|
float tmpvar_94;
|
||
|
tmpvar_94 = (lumaS + rgbyM.w);
|
||
|
lumaSS = tmpvar_94;
|
||
|
float tmpvar_95;
|
||
|
tmpvar_95 = abs (gradientN);
|
||
|
float tmpvar_96;
|
||
|
tmpvar_96 = abs (gradientS);
|
||
|
bool tmpvar_97;
|
||
|
tmpvar_97 = (tmpvar_95 >= tmpvar_96);
|
||
|
pairN = tmpvar_97;
|
||
|
float tmpvar_98;
|
||
|
tmpvar_98 = abs (gradientN);
|
||
|
float tmpvar_99;
|
||
|
tmpvar_99 = abs (gradientS);
|
||
|
float tmpvar_100;
|
||
|
tmpvar_100 = max (tmpvar_98, tmpvar_99);
|
||
|
float tmpvar_101;
|
||
|
tmpvar_101 = tmpvar_100;
|
||
|
gradient = tmpvar_101;
|
||
|
if (pairN) {
|
||
|
float tmpvar_102;
|
||
|
tmpvar_102 = -(lengthSign);
|
||
|
lengthSign = tmpvar_102;
|
||
|
};
|
||
|
float tmpvar_103;
|
||
|
tmpvar_103 = abs (subpixB);
|
||
|
float tmpvar_104;
|
||
|
tmpvar_104 = xll_saturate ((tmpvar_103 * subpixRcpRange));
|
||
|
float tmpvar_105;
|
||
|
tmpvar_105 = tmpvar_104;
|
||
|
subpixC = tmpvar_105;
|
||
|
float tmpvar_106;
|
||
|
tmpvar_106 = posM.x;
|
||
|
posB.x = tmpvar_106;
|
||
|
float tmpvar_107;
|
||
|
tmpvar_107 = posM.y;
|
||
|
posB.y = vec2(tmpvar_107).y;
|
||
|
float tmpvar_108;
|
||
|
if (!(horzSpan)) {
|
||
|
tmpvar_108 = 0.0;
|
||
|
} else {
|
||
|
tmpvar_108 = fxaaQualityRcpFrame.x;
|
||
|
};
|
||
|
float tmpvar_109;
|
||
|
tmpvar_109 = tmpvar_108;
|
||
|
offNP.x = tmpvar_109;
|
||
|
float tmpvar_110;
|
||
|
if (horzSpan) {
|
||
|
tmpvar_110 = 0.0;
|
||
|
} else {
|
||
|
tmpvar_110 = fxaaQualityRcpFrame.y;
|
||
|
};
|
||
|
float tmpvar_111;
|
||
|
tmpvar_111 = tmpvar_110;
|
||
|
offNP.y = vec2(tmpvar_111).y;
|
||
|
if (!(horzSpan)) {
|
||
|
float tmpvar_112;
|
||
|
tmpvar_112 = (posB.x + (lengthSign * 0.5));
|
||
|
posB.x = tmpvar_112;
|
||
|
};
|
||
|
if (horzSpan) {
|
||
|
float tmpvar_113;
|
||
|
tmpvar_113 = (posB.y + (lengthSign * 0.5));
|
||
|
posB.y = vec2(tmpvar_113).y;
|
||
|
};
|
||
|
float tmpvar_114;
|
||
|
tmpvar_114 = (posB.x - (offNP.x * 1.0));
|
||
|
posN.x = tmpvar_114;
|
||
|
float tmpvar_115;
|
||
|
tmpvar_115 = (posB.y - (offNP.y * 1.0));
|
||
|
posN.y = vec2(tmpvar_115).y;
|
||
|
float tmpvar_116;
|
||
|
tmpvar_116 = (posB.x + (offNP.x * 1.0));
|
||
|
posP.x = tmpvar_116;
|
||
|
float tmpvar_117;
|
||
|
tmpvar_117 = (posB.y + (offNP.y * 1.0));
|
||
|
posP.y = vec2(tmpvar_117).y;
|
||
|
float tmpvar_118;
|
||
|
tmpvar_118 = ((-(2.0) * subpixC) + 3.0);
|
||
|
subpixD = tmpvar_118;
|
||
|
vec4 tmpvar_119;
|
||
|
tmpvar_119.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_119.xy = posN.xy;
|
||
|
vec4 tmpvar_120;
|
||
|
tmpvar_120 = xll_tex2Dlod (tex, tmpvar_119);
|
||
|
float tmpvar_121;
|
||
|
tmpvar_121 = FxaaLuma (tmpvar_120);
|
||
|
float tmpvar_122;
|
||
|
tmpvar_122 = tmpvar_121;
|
||
|
lumaEndN = tmpvar_122;
|
||
|
float tmpvar_123;
|
||
|
tmpvar_123 = (subpixC * subpixC);
|
||
|
subpixE = tmpvar_123;
|
||
|
vec4 tmpvar_124;
|
||
|
tmpvar_124.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_124.xy = posP.xy;
|
||
|
vec4 tmpvar_125;
|
||
|
tmpvar_125 = xll_tex2Dlod (tex, tmpvar_124);
|
||
|
float tmpvar_126;
|
||
|
tmpvar_126 = FxaaLuma (tmpvar_125);
|
||
|
float tmpvar_127;
|
||
|
tmpvar_127 = tmpvar_126;
|
||
|
lumaEndP = tmpvar_127;
|
||
|
if (!(pairN)) {
|
||
|
float tmpvar_128;
|
||
|
tmpvar_128 = lumaSS;
|
||
|
lumaNN = tmpvar_128;
|
||
|
};
|
||
|
float tmpvar_129;
|
||
|
tmpvar_129 = ((gradient * 1.0) / 4.0);
|
||
|
gradientScaled = tmpvar_129;
|
||
|
float tmpvar_130;
|
||
|
tmpvar_130 = (rgbyM.w - (lumaNN * 0.5));
|
||
|
lumaMM = tmpvar_130;
|
||
|
float tmpvar_131;
|
||
|
tmpvar_131 = (subpixD * subpixE);
|
||
|
subpixF = tmpvar_131;
|
||
|
bool tmpvar_132;
|
||
|
tmpvar_132 = (lumaMM < 0.0);
|
||
|
lumaMLTZero = tmpvar_132;
|
||
|
float tmpvar_133;
|
||
|
tmpvar_133 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_133;
|
||
|
float tmpvar_134;
|
||
|
tmpvar_134 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_134;
|
||
|
float tmpvar_135;
|
||
|
tmpvar_135 = abs (lumaEndN);
|
||
|
bool tmpvar_136;
|
||
|
tmpvar_136 = (tmpvar_135 >= gradientScaled);
|
||
|
doneN = tmpvar_136;
|
||
|
float tmpvar_137;
|
||
|
tmpvar_137 = abs (lumaEndP);
|
||
|
bool tmpvar_138;
|
||
|
tmpvar_138 = (tmpvar_137 >= gradientScaled);
|
||
|
doneP = tmpvar_138;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_139;
|
||
|
tmpvar_139 = (posN.x - (offNP.x * 1.0));
|
||
|
posN.x = tmpvar_139;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_140;
|
||
|
tmpvar_140 = (posN.y - (offNP.y * 1.0));
|
||
|
posN.y = vec2(tmpvar_140).y;
|
||
|
};
|
||
|
bool tmpvar_141;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_141 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_141 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_142;
|
||
|
tmpvar_142 = tmpvar_141;
|
||
|
doneNP = tmpvar_142;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_143;
|
||
|
tmpvar_143 = (posP.x + (offNP.x * 1.0));
|
||
|
posP.x = tmpvar_143;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_144;
|
||
|
tmpvar_144 = (posP.y + (offNP.y * 1.0));
|
||
|
posP.y = vec2(tmpvar_144).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_145;
|
||
|
tmpvar_145.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_145.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_146;
|
||
|
tmpvar_146 = xll_tex2Dlod (tex, tmpvar_145);
|
||
|
float tmpvar_147;
|
||
|
tmpvar_147 = FxaaLuma (tmpvar_146);
|
||
|
float tmpvar_148;
|
||
|
tmpvar_148 = tmpvar_147;
|
||
|
lumaEndN = tmpvar_148;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_149;
|
||
|
tmpvar_149.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_149.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_150;
|
||
|
tmpvar_150 = xll_tex2Dlod (tex, tmpvar_149);
|
||
|
float tmpvar_151;
|
||
|
tmpvar_151 = FxaaLuma (tmpvar_150);
|
||
|
float tmpvar_152;
|
||
|
tmpvar_152 = tmpvar_151;
|
||
|
lumaEndP = tmpvar_152;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_153;
|
||
|
tmpvar_153 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_153;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_154;
|
||
|
tmpvar_154 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_154;
|
||
|
};
|
||
|
float tmpvar_155;
|
||
|
tmpvar_155 = abs (lumaEndN);
|
||
|
bool tmpvar_156;
|
||
|
tmpvar_156 = (tmpvar_155 >= gradientScaled);
|
||
|
doneN = tmpvar_156;
|
||
|
float tmpvar_157;
|
||
|
tmpvar_157 = abs (lumaEndP);
|
||
|
bool tmpvar_158;
|
||
|
tmpvar_158 = (tmpvar_157 >= gradientScaled);
|
||
|
doneP = tmpvar_158;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_159;
|
||
|
tmpvar_159 = (posN.x - (offNP.x * 1.0));
|
||
|
posN.x = tmpvar_159;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_160;
|
||
|
tmpvar_160 = (posN.y - (offNP.y * 1.0));
|
||
|
posN.y = vec2(tmpvar_160).y;
|
||
|
};
|
||
|
bool tmpvar_161;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_161 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_161 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_162;
|
||
|
tmpvar_162 = tmpvar_161;
|
||
|
doneNP = tmpvar_162;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_163;
|
||
|
tmpvar_163 = (posP.x + (offNP.x * 1.0));
|
||
|
posP.x = tmpvar_163;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_164;
|
||
|
tmpvar_164 = (posP.y + (offNP.y * 1.0));
|
||
|
posP.y = vec2(tmpvar_164).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_165;
|
||
|
tmpvar_165.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_165.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_166;
|
||
|
tmpvar_166 = xll_tex2Dlod (tex, tmpvar_165);
|
||
|
float tmpvar_167;
|
||
|
tmpvar_167 = FxaaLuma (tmpvar_166);
|
||
|
float tmpvar_168;
|
||
|
tmpvar_168 = tmpvar_167;
|
||
|
lumaEndN = tmpvar_168;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_169;
|
||
|
tmpvar_169.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_169.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_170;
|
||
|
tmpvar_170 = xll_tex2Dlod (tex, tmpvar_169);
|
||
|
float tmpvar_171;
|
||
|
tmpvar_171 = FxaaLuma (tmpvar_170);
|
||
|
float tmpvar_172;
|
||
|
tmpvar_172 = tmpvar_171;
|
||
|
lumaEndP = tmpvar_172;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_173;
|
||
|
tmpvar_173 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_173;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_174;
|
||
|
tmpvar_174 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_174;
|
||
|
};
|
||
|
float tmpvar_175;
|
||
|
tmpvar_175 = abs (lumaEndN);
|
||
|
bool tmpvar_176;
|
||
|
tmpvar_176 = (tmpvar_175 >= gradientScaled);
|
||
|
doneN = tmpvar_176;
|
||
|
float tmpvar_177;
|
||
|
tmpvar_177 = abs (lumaEndP);
|
||
|
bool tmpvar_178;
|
||
|
tmpvar_178 = (tmpvar_177 >= gradientScaled);
|
||
|
doneP = tmpvar_178;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_179;
|
||
|
tmpvar_179 = (posN.x - (offNP.x * 1.0));
|
||
|
posN.x = tmpvar_179;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_180;
|
||
|
tmpvar_180 = (posN.y - (offNP.y * 1.0));
|
||
|
posN.y = vec2(tmpvar_180).y;
|
||
|
};
|
||
|
bool tmpvar_181;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_181 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_181 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_182;
|
||
|
tmpvar_182 = tmpvar_181;
|
||
|
doneNP = tmpvar_182;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_183;
|
||
|
tmpvar_183 = (posP.x + (offNP.x * 1.0));
|
||
|
posP.x = tmpvar_183;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_184;
|
||
|
tmpvar_184 = (posP.y + (offNP.y * 1.0));
|
||
|
posP.y = vec2(tmpvar_184).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_185;
|
||
|
tmpvar_185.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_185.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_186;
|
||
|
tmpvar_186 = xll_tex2Dlod (tex, tmpvar_185);
|
||
|
float tmpvar_187;
|
||
|
tmpvar_187 = FxaaLuma (tmpvar_186);
|
||
|
float tmpvar_188;
|
||
|
tmpvar_188 = tmpvar_187;
|
||
|
lumaEndN = tmpvar_188;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_189;
|
||
|
tmpvar_189.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_189.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_190;
|
||
|
tmpvar_190 = xll_tex2Dlod (tex, tmpvar_189);
|
||
|
float tmpvar_191;
|
||
|
tmpvar_191 = FxaaLuma (tmpvar_190);
|
||
|
float tmpvar_192;
|
||
|
tmpvar_192 = tmpvar_191;
|
||
|
lumaEndP = tmpvar_192;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_193;
|
||
|
tmpvar_193 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_193;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_194;
|
||
|
tmpvar_194 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_194;
|
||
|
};
|
||
|
float tmpvar_195;
|
||
|
tmpvar_195 = abs (lumaEndN);
|
||
|
bool tmpvar_196;
|
||
|
tmpvar_196 = (tmpvar_195 >= gradientScaled);
|
||
|
doneN = tmpvar_196;
|
||
|
float tmpvar_197;
|
||
|
tmpvar_197 = abs (lumaEndP);
|
||
|
bool tmpvar_198;
|
||
|
tmpvar_198 = (tmpvar_197 >= gradientScaled);
|
||
|
doneP = tmpvar_198;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_199;
|
||
|
tmpvar_199 = (posN.x - (offNP.x * 1.0));
|
||
|
posN.x = tmpvar_199;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_200;
|
||
|
tmpvar_200 = (posN.y - (offNP.y * 1.0));
|
||
|
posN.y = vec2(tmpvar_200).y;
|
||
|
};
|
||
|
bool tmpvar_201;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_201 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_201 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_202;
|
||
|
tmpvar_202 = tmpvar_201;
|
||
|
doneNP = tmpvar_202;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_203;
|
||
|
tmpvar_203 = (posP.x + (offNP.x * 1.0));
|
||
|
posP.x = tmpvar_203;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_204;
|
||
|
tmpvar_204 = (posP.y + (offNP.y * 1.0));
|
||
|
posP.y = vec2(tmpvar_204).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_205;
|
||
|
tmpvar_205.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_205.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_206;
|
||
|
tmpvar_206 = xll_tex2Dlod (tex, tmpvar_205);
|
||
|
float tmpvar_207;
|
||
|
tmpvar_207 = FxaaLuma (tmpvar_206);
|
||
|
float tmpvar_208;
|
||
|
tmpvar_208 = tmpvar_207;
|
||
|
lumaEndN = tmpvar_208;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_209;
|
||
|
tmpvar_209.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_209.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_210;
|
||
|
tmpvar_210 = xll_tex2Dlod (tex, tmpvar_209);
|
||
|
float tmpvar_211;
|
||
|
tmpvar_211 = FxaaLuma (tmpvar_210);
|
||
|
float tmpvar_212;
|
||
|
tmpvar_212 = tmpvar_211;
|
||
|
lumaEndP = tmpvar_212;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_213;
|
||
|
tmpvar_213 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_213;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_214;
|
||
|
tmpvar_214 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_214;
|
||
|
};
|
||
|
float tmpvar_215;
|
||
|
tmpvar_215 = abs (lumaEndN);
|
||
|
bool tmpvar_216;
|
||
|
tmpvar_216 = (tmpvar_215 >= gradientScaled);
|
||
|
doneN = tmpvar_216;
|
||
|
float tmpvar_217;
|
||
|
tmpvar_217 = abs (lumaEndP);
|
||
|
bool tmpvar_218;
|
||
|
tmpvar_218 = (tmpvar_217 >= gradientScaled);
|
||
|
doneP = tmpvar_218;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_219;
|
||
|
tmpvar_219 = (posN.x - (offNP.x * 1.5));
|
||
|
posN.x = tmpvar_219;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_220;
|
||
|
tmpvar_220 = (posN.y - (offNP.y * 1.5));
|
||
|
posN.y = vec2(tmpvar_220).y;
|
||
|
};
|
||
|
bool tmpvar_221;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_221 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_221 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_222;
|
||
|
tmpvar_222 = tmpvar_221;
|
||
|
doneNP = tmpvar_222;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_223;
|
||
|
tmpvar_223 = (posP.x + (offNP.x * 1.5));
|
||
|
posP.x = tmpvar_223;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_224;
|
||
|
tmpvar_224 = (posP.y + (offNP.y * 1.5));
|
||
|
posP.y = vec2(tmpvar_224).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_225;
|
||
|
tmpvar_225.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_225.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_226;
|
||
|
tmpvar_226 = xll_tex2Dlod (tex, tmpvar_225);
|
||
|
float tmpvar_227;
|
||
|
tmpvar_227 = FxaaLuma (tmpvar_226);
|
||
|
float tmpvar_228;
|
||
|
tmpvar_228 = tmpvar_227;
|
||
|
lumaEndN = tmpvar_228;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_229;
|
||
|
tmpvar_229.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_229.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_230;
|
||
|
tmpvar_230 = xll_tex2Dlod (tex, tmpvar_229);
|
||
|
float tmpvar_231;
|
||
|
tmpvar_231 = FxaaLuma (tmpvar_230);
|
||
|
float tmpvar_232;
|
||
|
tmpvar_232 = tmpvar_231;
|
||
|
lumaEndP = tmpvar_232;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_233;
|
||
|
tmpvar_233 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_233;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_234;
|
||
|
tmpvar_234 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_234;
|
||
|
};
|
||
|
float tmpvar_235;
|
||
|
tmpvar_235 = abs (lumaEndN);
|
||
|
bool tmpvar_236;
|
||
|
tmpvar_236 = (tmpvar_235 >= gradientScaled);
|
||
|
doneN = tmpvar_236;
|
||
|
float tmpvar_237;
|
||
|
tmpvar_237 = abs (lumaEndP);
|
||
|
bool tmpvar_238;
|
||
|
tmpvar_238 = (tmpvar_237 >= gradientScaled);
|
||
|
doneP = tmpvar_238;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_239;
|
||
|
tmpvar_239 = (posN.x - (offNP.x * 2.0));
|
||
|
posN.x = tmpvar_239;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_240;
|
||
|
tmpvar_240 = (posN.y - (offNP.y * 2.0));
|
||
|
posN.y = vec2(tmpvar_240).y;
|
||
|
};
|
||
|
bool tmpvar_241;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_241 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_241 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_242;
|
||
|
tmpvar_242 = tmpvar_241;
|
||
|
doneNP = tmpvar_242;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_243;
|
||
|
tmpvar_243 = (posP.x + (offNP.x * 2.0));
|
||
|
posP.x = tmpvar_243;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_244;
|
||
|
tmpvar_244 = (posP.y + (offNP.y * 2.0));
|
||
|
posP.y = vec2(tmpvar_244).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_245;
|
||
|
tmpvar_245.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_245.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_246;
|
||
|
tmpvar_246 = xll_tex2Dlod (tex, tmpvar_245);
|
||
|
float tmpvar_247;
|
||
|
tmpvar_247 = FxaaLuma (tmpvar_246);
|
||
|
float tmpvar_248;
|
||
|
tmpvar_248 = tmpvar_247;
|
||
|
lumaEndN = tmpvar_248;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_249;
|
||
|
tmpvar_249.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_249.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_250;
|
||
|
tmpvar_250 = xll_tex2Dlod (tex, tmpvar_249);
|
||
|
float tmpvar_251;
|
||
|
tmpvar_251 = FxaaLuma (tmpvar_250);
|
||
|
float tmpvar_252;
|
||
|
tmpvar_252 = tmpvar_251;
|
||
|
lumaEndP = tmpvar_252;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_253;
|
||
|
tmpvar_253 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_253;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_254;
|
||
|
tmpvar_254 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_254;
|
||
|
};
|
||
|
float tmpvar_255;
|
||
|
tmpvar_255 = abs (lumaEndN);
|
||
|
bool tmpvar_256;
|
||
|
tmpvar_256 = (tmpvar_255 >= gradientScaled);
|
||
|
doneN = tmpvar_256;
|
||
|
float tmpvar_257;
|
||
|
tmpvar_257 = abs (lumaEndP);
|
||
|
bool tmpvar_258;
|
||
|
tmpvar_258 = (tmpvar_257 >= gradientScaled);
|
||
|
doneP = tmpvar_258;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_259;
|
||
|
tmpvar_259 = (posN.x - (offNP.x * 2.0));
|
||
|
posN.x = tmpvar_259;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_260;
|
||
|
tmpvar_260 = (posN.y - (offNP.y * 2.0));
|
||
|
posN.y = vec2(tmpvar_260).y;
|
||
|
};
|
||
|
bool tmpvar_261;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_261 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_261 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_262;
|
||
|
tmpvar_262 = tmpvar_261;
|
||
|
doneNP = tmpvar_262;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_263;
|
||
|
tmpvar_263 = (posP.x + (offNP.x * 2.0));
|
||
|
posP.x = tmpvar_263;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_264;
|
||
|
tmpvar_264 = (posP.y + (offNP.y * 2.0));
|
||
|
posP.y = vec2(tmpvar_264).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_265;
|
||
|
tmpvar_265.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_265.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_266;
|
||
|
tmpvar_266 = xll_tex2Dlod (tex, tmpvar_265);
|
||
|
float tmpvar_267;
|
||
|
tmpvar_267 = FxaaLuma (tmpvar_266);
|
||
|
float tmpvar_268;
|
||
|
tmpvar_268 = tmpvar_267;
|
||
|
lumaEndN = tmpvar_268;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_269;
|
||
|
tmpvar_269.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_269.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_270;
|
||
|
tmpvar_270 = xll_tex2Dlod (tex, tmpvar_269);
|
||
|
float tmpvar_271;
|
||
|
tmpvar_271 = FxaaLuma (tmpvar_270);
|
||
|
float tmpvar_272;
|
||
|
tmpvar_272 = tmpvar_271;
|
||
|
lumaEndP = tmpvar_272;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_273;
|
||
|
tmpvar_273 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_273;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_274;
|
||
|
tmpvar_274 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_274;
|
||
|
};
|
||
|
float tmpvar_275;
|
||
|
tmpvar_275 = abs (lumaEndN);
|
||
|
bool tmpvar_276;
|
||
|
tmpvar_276 = (tmpvar_275 >= gradientScaled);
|
||
|
doneN = tmpvar_276;
|
||
|
float tmpvar_277;
|
||
|
tmpvar_277 = abs (lumaEndP);
|
||
|
bool tmpvar_278;
|
||
|
tmpvar_278 = (tmpvar_277 >= gradientScaled);
|
||
|
doneP = tmpvar_278;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_279;
|
||
|
tmpvar_279 = (posN.x - (offNP.x * 2.0));
|
||
|
posN.x = tmpvar_279;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_280;
|
||
|
tmpvar_280 = (posN.y - (offNP.y * 2.0));
|
||
|
posN.y = vec2(tmpvar_280).y;
|
||
|
};
|
||
|
bool tmpvar_281;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_281 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_281 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_282;
|
||
|
tmpvar_282 = tmpvar_281;
|
||
|
doneNP = tmpvar_282;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_283;
|
||
|
tmpvar_283 = (posP.x + (offNP.x * 2.0));
|
||
|
posP.x = tmpvar_283;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_284;
|
||
|
tmpvar_284 = (posP.y + (offNP.y * 2.0));
|
||
|
posP.y = vec2(tmpvar_284).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_285;
|
||
|
tmpvar_285.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_285.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_286;
|
||
|
tmpvar_286 = xll_tex2Dlod (tex, tmpvar_285);
|
||
|
float tmpvar_287;
|
||
|
tmpvar_287 = FxaaLuma (tmpvar_286);
|
||
|
float tmpvar_288;
|
||
|
tmpvar_288 = tmpvar_287;
|
||
|
lumaEndN = tmpvar_288;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_289;
|
||
|
tmpvar_289.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_289.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_290;
|
||
|
tmpvar_290 = xll_tex2Dlod (tex, tmpvar_289);
|
||
|
float tmpvar_291;
|
||
|
tmpvar_291 = FxaaLuma (tmpvar_290);
|
||
|
float tmpvar_292;
|
||
|
tmpvar_292 = tmpvar_291;
|
||
|
lumaEndP = tmpvar_292;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_293;
|
||
|
tmpvar_293 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_293;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_294;
|
||
|
tmpvar_294 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_294;
|
||
|
};
|
||
|
float tmpvar_295;
|
||
|
tmpvar_295 = abs (lumaEndN);
|
||
|
bool tmpvar_296;
|
||
|
tmpvar_296 = (tmpvar_295 >= gradientScaled);
|
||
|
doneN = tmpvar_296;
|
||
|
float tmpvar_297;
|
||
|
tmpvar_297 = abs (lumaEndP);
|
||
|
bool tmpvar_298;
|
||
|
tmpvar_298 = (tmpvar_297 >= gradientScaled);
|
||
|
doneP = tmpvar_298;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_299;
|
||
|
tmpvar_299 = (posN.x - (offNP.x * 2.0));
|
||
|
posN.x = tmpvar_299;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_300;
|
||
|
tmpvar_300 = (posN.y - (offNP.y * 2.0));
|
||
|
posN.y = vec2(tmpvar_300).y;
|
||
|
};
|
||
|
bool tmpvar_301;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_301 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_301 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_302;
|
||
|
tmpvar_302 = tmpvar_301;
|
||
|
doneNP = tmpvar_302;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_303;
|
||
|
tmpvar_303 = (posP.x + (offNP.x * 2.0));
|
||
|
posP.x = tmpvar_303;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_304;
|
||
|
tmpvar_304 = (posP.y + (offNP.y * 2.0));
|
||
|
posP.y = vec2(tmpvar_304).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_305;
|
||
|
tmpvar_305.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_305.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_306;
|
||
|
tmpvar_306 = xll_tex2Dlod (tex, tmpvar_305);
|
||
|
float tmpvar_307;
|
||
|
tmpvar_307 = FxaaLuma (tmpvar_306);
|
||
|
float tmpvar_308;
|
||
|
tmpvar_308 = tmpvar_307;
|
||
|
lumaEndN = tmpvar_308;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_309;
|
||
|
tmpvar_309.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_309.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_310;
|
||
|
tmpvar_310 = xll_tex2Dlod (tex, tmpvar_309);
|
||
|
float tmpvar_311;
|
||
|
tmpvar_311 = FxaaLuma (tmpvar_310);
|
||
|
float tmpvar_312;
|
||
|
tmpvar_312 = tmpvar_311;
|
||
|
lumaEndP = tmpvar_312;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_313;
|
||
|
tmpvar_313 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_313;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_314;
|
||
|
tmpvar_314 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_314;
|
||
|
};
|
||
|
float tmpvar_315;
|
||
|
tmpvar_315 = abs (lumaEndN);
|
||
|
bool tmpvar_316;
|
||
|
tmpvar_316 = (tmpvar_315 >= gradientScaled);
|
||
|
doneN = tmpvar_316;
|
||
|
float tmpvar_317;
|
||
|
tmpvar_317 = abs (lumaEndP);
|
||
|
bool tmpvar_318;
|
||
|
tmpvar_318 = (tmpvar_317 >= gradientScaled);
|
||
|
doneP = tmpvar_318;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_319;
|
||
|
tmpvar_319 = (posN.x - (offNP.x * 4.0));
|
||
|
posN.x = tmpvar_319;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_320;
|
||
|
tmpvar_320 = (posN.y - (offNP.y * 4.0));
|
||
|
posN.y = vec2(tmpvar_320).y;
|
||
|
};
|
||
|
bool tmpvar_321;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_321 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_321 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_322;
|
||
|
tmpvar_322 = tmpvar_321;
|
||
|
doneNP = tmpvar_322;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_323;
|
||
|
tmpvar_323 = (posP.x + (offNP.x * 4.0));
|
||
|
posP.x = tmpvar_323;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_324;
|
||
|
tmpvar_324 = (posP.y + (offNP.y * 4.0));
|
||
|
posP.y = vec2(tmpvar_324).y;
|
||
|
};
|
||
|
if (doneNP) {
|
||
|
if (!(doneN)) {
|
||
|
vec4 tmpvar_325;
|
||
|
tmpvar_325.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_325.xy = posN.xy.xy;
|
||
|
vec4 tmpvar_326;
|
||
|
tmpvar_326 = xll_tex2Dlod (tex, tmpvar_325);
|
||
|
float tmpvar_327;
|
||
|
tmpvar_327 = FxaaLuma (tmpvar_326);
|
||
|
float tmpvar_328;
|
||
|
tmpvar_328 = tmpvar_327;
|
||
|
lumaEndN = tmpvar_328;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
vec4 tmpvar_329;
|
||
|
tmpvar_329.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_329.xy = posP.xy.xy;
|
||
|
vec4 tmpvar_330;
|
||
|
tmpvar_330 = xll_tex2Dlod (tex, tmpvar_329);
|
||
|
float tmpvar_331;
|
||
|
tmpvar_331 = FxaaLuma (tmpvar_330);
|
||
|
float tmpvar_332;
|
||
|
tmpvar_332 = tmpvar_331;
|
||
|
lumaEndP = tmpvar_332;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_333;
|
||
|
tmpvar_333 = (lumaEndN - (lumaNN * 0.5));
|
||
|
lumaEndN = tmpvar_333;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_334;
|
||
|
tmpvar_334 = (lumaEndP - (lumaNN * 0.5));
|
||
|
lumaEndP = tmpvar_334;
|
||
|
};
|
||
|
float tmpvar_335;
|
||
|
tmpvar_335 = abs (lumaEndN);
|
||
|
bool tmpvar_336;
|
||
|
tmpvar_336 = (tmpvar_335 >= gradientScaled);
|
||
|
doneN = tmpvar_336;
|
||
|
float tmpvar_337;
|
||
|
tmpvar_337 = abs (lumaEndP);
|
||
|
bool tmpvar_338;
|
||
|
tmpvar_338 = (tmpvar_337 >= gradientScaled);
|
||
|
doneP = tmpvar_338;
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_339;
|
||
|
tmpvar_339 = (posN.x - (offNP.x * 8.0));
|
||
|
posN.x = tmpvar_339;
|
||
|
};
|
||
|
if (!(doneN)) {
|
||
|
float tmpvar_340;
|
||
|
tmpvar_340 = (posN.y - (offNP.y * 8.0));
|
||
|
posN.y = vec2(tmpvar_340).y;
|
||
|
};
|
||
|
bool tmpvar_341;
|
||
|
if (!(doneN)) {
|
||
|
tmpvar_341 = bool(1);
|
||
|
} else {
|
||
|
tmpvar_341 = !(doneP);
|
||
|
};
|
||
|
bool tmpvar_342;
|
||
|
tmpvar_342 = tmpvar_341;
|
||
|
doneNP = tmpvar_342;
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_343;
|
||
|
tmpvar_343 = (posP.x + (offNP.x * 8.0));
|
||
|
posP.x = tmpvar_343;
|
||
|
};
|
||
|
if (!(doneP)) {
|
||
|
float tmpvar_344;
|
||
|
tmpvar_344 = (posP.y + (offNP.y * 8.0));
|
||
|
posP.y = vec2(tmpvar_344).y;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
float tmpvar_345;
|
||
|
tmpvar_345 = (posM.x - posN.x);
|
||
|
dstN = tmpvar_345;
|
||
|
float tmpvar_346;
|
||
|
tmpvar_346 = (posP.x - posM.x);
|
||
|
dstP = tmpvar_346;
|
||
|
if (!(horzSpan)) {
|
||
|
float tmpvar_347;
|
||
|
tmpvar_347 = (posM.y - posN.y);
|
||
|
dstN = tmpvar_347;
|
||
|
};
|
||
|
if (!(horzSpan)) {
|
||
|
float tmpvar_348;
|
||
|
tmpvar_348 = (posP.y - posM.y);
|
||
|
dstP = tmpvar_348;
|
||
|
};
|
||
|
bool tmpvar_349;
|
||
|
tmpvar_349 = ((lumaEndN < 0.0) != lumaMLTZero);
|
||
|
goodSpanN = tmpvar_349;
|
||
|
float tmpvar_350;
|
||
|
tmpvar_350 = (dstP + dstN);
|
||
|
spanLength = tmpvar_350;
|
||
|
bool tmpvar_351;
|
||
|
tmpvar_351 = ((lumaEndP < 0.0) != lumaMLTZero);
|
||
|
goodSpanP = tmpvar_351;
|
||
|
float tmpvar_352;
|
||
|
tmpvar_352 = (1.0 / spanLength);
|
||
|
spanLengthRcp = tmpvar_352;
|
||
|
bool tmpvar_353;
|
||
|
tmpvar_353 = (dstN < dstP);
|
||
|
directionN = tmpvar_353;
|
||
|
float tmpvar_354;
|
||
|
tmpvar_354 = min (dstN, dstP);
|
||
|
float tmpvar_355;
|
||
|
tmpvar_355 = tmpvar_354;
|
||
|
dst = tmpvar_355;
|
||
|
bool tmpvar_356;
|
||
|
if (directionN) {
|
||
|
tmpvar_356 = goodSpanN;
|
||
|
} else {
|
||
|
tmpvar_356 = goodSpanP;
|
||
|
};
|
||
|
bool tmpvar_357;
|
||
|
tmpvar_357 = tmpvar_356;
|
||
|
goodSpan = tmpvar_357;
|
||
|
float tmpvar_358;
|
||
|
tmpvar_358 = (subpixF * subpixF);
|
||
|
subpixG = tmpvar_358;
|
||
|
float tmpvar_359;
|
||
|
tmpvar_359 = ((dst * -(spanLengthRcp)) + 0.5);
|
||
|
pixelOffset = tmpvar_359;
|
||
|
float tmpvar_360;
|
||
|
tmpvar_360 = (subpixG * fxaaQualitySubpix);
|
||
|
subpixH = tmpvar_360;
|
||
|
float tmpvar_361;
|
||
|
if (goodSpan) {
|
||
|
tmpvar_361 = pixelOffset;
|
||
|
} else {
|
||
|
tmpvar_361 = 0.0;
|
||
|
};
|
||
|
float tmpvar_362;
|
||
|
tmpvar_362 = tmpvar_361;
|
||
|
pixelOffsetGood = tmpvar_362;
|
||
|
float tmpvar_363;
|
||
|
tmpvar_363 = max (pixelOffsetGood, subpixH);
|
||
|
float tmpvar_364;
|
||
|
tmpvar_364 = tmpvar_363;
|
||
|
pixelOffsetSubpix = tmpvar_364;
|
||
|
if (!(horzSpan)) {
|
||
|
float tmpvar_365;
|
||
|
tmpvar_365 = (posM.x + (pixelOffsetSubpix * lengthSign));
|
||
|
posM.x = tmpvar_365;
|
||
|
};
|
||
|
if (horzSpan) {
|
||
|
float tmpvar_366;
|
||
|
tmpvar_366 = (posM.y + (pixelOffsetSubpix * lengthSign));
|
||
|
posM.y = vec2(tmpvar_366).y;
|
||
|
};
|
||
|
vec4 tmpvar_367;
|
||
|
tmpvar_367.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_367.xy = posM.xy;
|
||
|
vec4 tmpvar_368;
|
||
|
tmpvar_368 = xll_tex2Dlod (tex, tmpvar_367);
|
||
|
vec4 tmpvar_369;
|
||
|
tmpvar_369.xyz = tmpvar_368.xyz.xyz;
|
||
|
tmpvar_369.w = rgbyM.w;
|
||
|
return tmpvar_369;
|
||
|
}
|
||
|
|
||
|
vec4 xlat_main (
|
||
|
in v2f i
|
||
|
)
|
||
|
{
|
||
|
float fxaaN;
|
||
|
float tmpvar_1;
|
||
|
tmpvar_1 = 0.5;
|
||
|
fxaaN = tmpvar_1;
|
||
|
vec4 tmpvar_2;
|
||
|
tmpvar_2.x = -(fxaaN);
|
||
|
tmpvar_2.y = -(fxaaN);
|
||
|
tmpvar_2.z = fxaaN;
|
||
|
tmpvar_2.w = fxaaN;
|
||
|
vec4 tmpvar_3;
|
||
|
tmpvar_3 = FxaaPixelShader (i.uv, i.uvPosPos, _MainTex, _MainTex, _MainTex, _MainTex_TexelSize.xy, (_MainTex_TexelSize.xyxy * tmpvar_2), (_MainTex_TexelSize.xyxy * vec4(-2.0, -2.0, 2.0, 2.0)), (_MainTex_TexelSize.xyxy * vec4(8.0, 8.0, -4.0, -4.0)), 0.75, 0.166, 0.0833, 8.0, 0.125, 0.05, vec4(1.0, -1.0, 0.25, -0.25));
|
||
|
return tmpvar_3;
|
||
|
}
|
||
|
|
||
|
void main ()
|
||
|
{
|
||
|
v2f xlt_i;
|
||
|
vec4 xl_retval;
|
||
|
vec4 tmpvar_1;
|
||
|
tmpvar_1 = xlv_SV_POSITION.xyzw;
|
||
|
vec4 tmpvar_2;
|
||
|
tmpvar_2 = tmpvar_1;
|
||
|
xlt_i.pos = tmpvar_2;
|
||
|
vec2 tmpvar_3;
|
||
|
tmpvar_3 = xlv_TEXCOORD0.xy;
|
||
|
vec2 tmpvar_4;
|
||
|
tmpvar_4 = tmpvar_3;
|
||
|
xlt_i.uv = tmpvar_4;
|
||
|
vec4 tmpvar_5;
|
||
|
tmpvar_5 = xlv_TEXCOORD1.xyzw;
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6 = tmpvar_5;
|
||
|
xlt_i.uvPosPos = tmpvar_6;
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = xlat_main (xlt_i);
|
||
|
vec4 tmpvar_8;
|
||
|
tmpvar_8 = tmpvar_7;
|
||
|
xl_retval = tmpvar_8;
|
||
|
vec4 tmpvar_9;
|
||
|
tmpvar_9 = xl_retval.xyzw;
|
||
|
vec4 tmpvar_10;
|
||
|
tmpvar_10 = tmpvar_9;
|
||
|
gl_FragData[0] = tmpvar_10;
|
||
|
}
|
||
|
|