mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
1476 lines
46 KiB
Text
1476 lines
46 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_1,
|
|
in vec4 coord_2
|
|
)
|
|
{
|
|
vec4 tmpvar_3;
|
|
tmpvar_3 = texture2DLod (s_1, coord_2.xy, coord_2.w);
|
|
return tmpvar_3;
|
|
}
|
|
|
|
float xll_saturate (
|
|
in float x_4
|
|
)
|
|
{
|
|
float tmpvar_5;
|
|
tmpvar_5 = clamp (x_4, 0.0, 1.0);
|
|
return tmpvar_5;
|
|
}
|
|
|
|
vec2 xll_saturate (
|
|
in vec2 x_6
|
|
)
|
|
{
|
|
vec2 tmpvar_7;
|
|
tmpvar_7 = clamp (x_6, 0.0, 1.0);
|
|
return tmpvar_7;
|
|
}
|
|
|
|
vec3 xll_saturate (
|
|
in vec3 x_8
|
|
)
|
|
{
|
|
vec3 tmpvar_9;
|
|
tmpvar_9 = clamp (x_8, 0.0, 1.0);
|
|
return tmpvar_9;
|
|
}
|
|
|
|
vec4 xll_saturate (
|
|
in vec4 x_10
|
|
)
|
|
{
|
|
vec4 tmpvar_11;
|
|
tmpvar_11 = clamp (x_10, 0.0, 1.0);
|
|
return tmpvar_11;
|
|
}
|
|
|
|
mat2 xll_saturate (
|
|
in mat2 m_12
|
|
)
|
|
{
|
|
vec2 tmpvar_13;
|
|
tmpvar_13 = clamp (m_12[0], 0.0, 1.0);
|
|
vec2 tmpvar_14;
|
|
tmpvar_14 = clamp (m_12[1], 0.0, 1.0);
|
|
mat2 tmpvar_15;
|
|
vec2 tmpvar_16;
|
|
tmpvar_16 = tmpvar_13;
|
|
tmpvar_15[0] = tmpvar_16;
|
|
vec2 tmpvar_17;
|
|
tmpvar_17 = tmpvar_14;
|
|
tmpvar_15[1] = tmpvar_17;
|
|
return tmpvar_15;
|
|
}
|
|
|
|
mat3 xll_saturate (
|
|
in mat3 m_18
|
|
)
|
|
{
|
|
vec3 tmpvar_19;
|
|
tmpvar_19 = clamp (m_18[0], 0.0, 1.0);
|
|
vec3 tmpvar_20;
|
|
tmpvar_20 = clamp (m_18[1], 0.0, 1.0);
|
|
vec3 tmpvar_21;
|
|
tmpvar_21 = clamp (m_18[2], 0.0, 1.0);
|
|
mat3 tmpvar_22;
|
|
vec3 tmpvar_23;
|
|
tmpvar_23 = tmpvar_19;
|
|
tmpvar_22[0] = tmpvar_23;
|
|
vec3 tmpvar_24;
|
|
tmpvar_24 = tmpvar_20;
|
|
tmpvar_22[1] = tmpvar_24;
|
|
vec3 tmpvar_25;
|
|
tmpvar_25 = tmpvar_21;
|
|
tmpvar_22[2] = tmpvar_25;
|
|
return tmpvar_22;
|
|
}
|
|
|
|
mat4 xll_saturate (
|
|
in mat4 m_26
|
|
)
|
|
{
|
|
vec4 tmpvar_27;
|
|
tmpvar_27 = clamp (m_26[0], 0.0, 1.0);
|
|
vec4 tmpvar_28;
|
|
tmpvar_28 = clamp (m_26[1], 0.0, 1.0);
|
|
vec4 tmpvar_29;
|
|
tmpvar_29 = clamp (m_26[2], 0.0, 1.0);
|
|
vec4 tmpvar_30;
|
|
tmpvar_30 = clamp (m_26[3], 0.0, 1.0);
|
|
mat4 tmpvar_31;
|
|
vec4 tmpvar_32;
|
|
tmpvar_32 = tmpvar_27;
|
|
tmpvar_31[0] = tmpvar_32;
|
|
vec4 tmpvar_33;
|
|
tmpvar_33 = tmpvar_28;
|
|
tmpvar_31[1] = tmpvar_33;
|
|
vec4 tmpvar_34;
|
|
tmpvar_34 = tmpvar_29;
|
|
tmpvar_31[2] = tmpvar_34;
|
|
vec4 tmpvar_35;
|
|
tmpvar_35 = tmpvar_30;
|
|
tmpvar_31[3] = tmpvar_35;
|
|
return tmpvar_31;
|
|
}
|
|
|
|
float FxaaLuma (
|
|
in vec4 rgba_36
|
|
)
|
|
{
|
|
return rgba_36.w;
|
|
}
|
|
|
|
vec4 FxaaPixelShader (
|
|
in vec2 pos_37,
|
|
in vec4 fxaaConsolePosPos_38,
|
|
in sampler2D tex_39,
|
|
in sampler2D fxaaConsole360TexExpBiasNegOne_40,
|
|
in sampler2D fxaaConsole360TexExpBiasNegTwo_41,
|
|
in vec2 fxaaQualityRcpFrame_42,
|
|
in vec4 fxaaConsoleRcpFrameOpt_43,
|
|
in vec4 fxaaConsoleRcpFrameOpt2_44,
|
|
in vec4 fxaaConsole360RcpFrameOpt2_45,
|
|
in float fxaaQualitySubpix_46,
|
|
in float fxaaQualityEdgeThreshold_47,
|
|
in float fxaaQualityEdgeThresholdMin_48,
|
|
in float fxaaConsoleEdgeSharpness_49,
|
|
in float fxaaConsoleEdgeThreshold_50,
|
|
in float fxaaConsoleEdgeThresholdMin_51,
|
|
in vec4 fxaaConsole360ConstDir_52
|
|
)
|
|
{
|
|
float pixelOffsetSubpix_53;
|
|
float pixelOffsetGood_54;
|
|
float subpixH_55;
|
|
float pixelOffset_56;
|
|
float subpixG_57;
|
|
bool goodSpan_58;
|
|
float dst_59;
|
|
bool directionN_60;
|
|
float spanLengthRcp_61;
|
|
bool goodSpanP_62;
|
|
float spanLength_63;
|
|
bool goodSpanN_64;
|
|
float dstP_65;
|
|
float dstN_66;
|
|
bool doneNP_67;
|
|
bool doneP_68;
|
|
bool doneN_69;
|
|
bool lumaMLTZero_70;
|
|
float subpixF_71;
|
|
float lumaMM_72;
|
|
float gradientScaled_73;
|
|
float lumaEndP_74;
|
|
float subpixE_75;
|
|
float lumaEndN_76;
|
|
float subpixD_77;
|
|
vec2 posP_78;
|
|
vec2 posN_79;
|
|
vec2 offNP_80;
|
|
vec2 posB_81;
|
|
float subpixC_82;
|
|
float gradient_83;
|
|
bool pairN_84;
|
|
float lumaSS_85;
|
|
float lumaNN_86;
|
|
float gradientS_87;
|
|
float gradientN_88;
|
|
float subpixB_89;
|
|
float subpixA_90;
|
|
bool horzSpan_91;
|
|
float lengthSign_92;
|
|
float subpixNWSWNESE_93;
|
|
float edgeVert_94;
|
|
float edgeHorz_95;
|
|
float edgeVert3_96;
|
|
float edgeHorz3_97;
|
|
float edgeVert4_98;
|
|
float edgeHorz4_99;
|
|
float lumaSWSE_100;
|
|
float lumaNWSW_101;
|
|
float edgeVert2_102;
|
|
float edgeHorz2_103;
|
|
float lumaNWNE_104;
|
|
float lumaNESE_105;
|
|
float edgeVert1_106;
|
|
float edgeHorz1_107;
|
|
float subpixNSWE_108;
|
|
float subpixRcpRange_109;
|
|
float lumaWE_110;
|
|
float lumaNS_111;
|
|
float lumaSW_112;
|
|
float lumaNE_113;
|
|
float lumaSE_114;
|
|
float lumaNW_115;
|
|
bool earlyExit_116;
|
|
float rangeMaxClamped_117;
|
|
float range_118;
|
|
float rangeMaxScaled_119;
|
|
float rangeMin_120;
|
|
float rangeMax_121;
|
|
float minWN_122;
|
|
float maxWN_123;
|
|
float minESM_124;
|
|
float maxESM_125;
|
|
float minSM_126;
|
|
float maxSM_127;
|
|
float lumaW_128;
|
|
float lumaN_129;
|
|
float lumaE_130;
|
|
float lumaS_131;
|
|
vec4 rgbyM_132;
|
|
vec2 posM_133;
|
|
float tmpvar_134;
|
|
tmpvar_134 = pos_37.x;
|
|
posM_133.x = tmpvar_134;
|
|
float tmpvar_135;
|
|
tmpvar_135 = pos_37.y;
|
|
posM_133.y = vec2(tmpvar_135).y;
|
|
vec4 tmpvar_136;
|
|
tmpvar_136.zw = vec2(0.0, 0.0);
|
|
tmpvar_136.xy = posM_133.xy;
|
|
vec4 tmpvar_137;
|
|
tmpvar_137 = xll_tex2Dlod (tex_39, tmpvar_136);
|
|
vec4 tmpvar_138;
|
|
tmpvar_138 = tmpvar_137;
|
|
rgbyM_132 = tmpvar_138;
|
|
vec4 tmpvar_139;
|
|
tmpvar_139.zw = vec2(0.0, 0.0);
|
|
tmpvar_139.xy = (posM_133 + (vec2(0.0, 1.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_140;
|
|
tmpvar_140 = xll_tex2Dlod (tex_39, tmpvar_139);
|
|
float tmpvar_141;
|
|
tmpvar_141 = FxaaLuma (tmpvar_140);
|
|
float tmpvar_142;
|
|
tmpvar_142 = tmpvar_141;
|
|
lumaS_131 = tmpvar_142;
|
|
vec4 tmpvar_143;
|
|
tmpvar_143.zw = vec2(0.0, 0.0);
|
|
tmpvar_143.xy = (posM_133 + (vec2(1.0, 0.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_144;
|
|
tmpvar_144 = xll_tex2Dlod (tex_39, tmpvar_143);
|
|
float tmpvar_145;
|
|
tmpvar_145 = FxaaLuma (tmpvar_144);
|
|
float tmpvar_146;
|
|
tmpvar_146 = tmpvar_145;
|
|
lumaE_130 = tmpvar_146;
|
|
vec4 tmpvar_147;
|
|
tmpvar_147.zw = vec2(0.0, 0.0);
|
|
tmpvar_147.xy = (posM_133 + (vec2(0.0, -1.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_148;
|
|
tmpvar_148 = xll_tex2Dlod (tex_39, tmpvar_147);
|
|
float tmpvar_149;
|
|
tmpvar_149 = FxaaLuma (tmpvar_148);
|
|
float tmpvar_150;
|
|
tmpvar_150 = tmpvar_149;
|
|
lumaN_129 = tmpvar_150;
|
|
vec4 tmpvar_151;
|
|
tmpvar_151.zw = vec2(0.0, 0.0);
|
|
tmpvar_151.xy = (posM_133 + (vec2(-1.0, 0.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_152;
|
|
tmpvar_152 = xll_tex2Dlod (tex_39, tmpvar_151);
|
|
float tmpvar_153;
|
|
tmpvar_153 = FxaaLuma (tmpvar_152);
|
|
float tmpvar_154;
|
|
tmpvar_154 = tmpvar_153;
|
|
lumaW_128 = tmpvar_154;
|
|
float tmpvar_155;
|
|
tmpvar_155 = max (lumaS_131, rgbyM_132.w);
|
|
float tmpvar_156;
|
|
tmpvar_156 = tmpvar_155;
|
|
maxSM_127 = tmpvar_156;
|
|
float tmpvar_157;
|
|
tmpvar_157 = min (lumaS_131, rgbyM_132.w);
|
|
float tmpvar_158;
|
|
tmpvar_158 = tmpvar_157;
|
|
minSM_126 = tmpvar_158;
|
|
float tmpvar_159;
|
|
tmpvar_159 = max (lumaE_130, maxSM_127);
|
|
float tmpvar_160;
|
|
tmpvar_160 = tmpvar_159;
|
|
maxESM_125 = tmpvar_160;
|
|
float tmpvar_161;
|
|
tmpvar_161 = min (lumaE_130, minSM_126);
|
|
float tmpvar_162;
|
|
tmpvar_162 = tmpvar_161;
|
|
minESM_124 = tmpvar_162;
|
|
float tmpvar_163;
|
|
tmpvar_163 = max (lumaN_129, lumaW_128);
|
|
float tmpvar_164;
|
|
tmpvar_164 = tmpvar_163;
|
|
maxWN_123 = tmpvar_164;
|
|
float tmpvar_165;
|
|
tmpvar_165 = min (lumaN_129, lumaW_128);
|
|
float tmpvar_166;
|
|
tmpvar_166 = tmpvar_165;
|
|
minWN_122 = tmpvar_166;
|
|
float tmpvar_167;
|
|
tmpvar_167 = max (maxWN_123, maxESM_125);
|
|
float tmpvar_168;
|
|
tmpvar_168 = tmpvar_167;
|
|
rangeMax_121 = tmpvar_168;
|
|
float tmpvar_169;
|
|
tmpvar_169 = min (minWN_122, minESM_124);
|
|
float tmpvar_170;
|
|
tmpvar_170 = tmpvar_169;
|
|
rangeMin_120 = tmpvar_170;
|
|
float tmpvar_171;
|
|
tmpvar_171 = (rangeMax_121 * fxaaQualityEdgeThreshold_47);
|
|
rangeMaxScaled_119 = tmpvar_171;
|
|
float tmpvar_172;
|
|
tmpvar_172 = (rangeMax_121 - rangeMin_120);
|
|
range_118 = tmpvar_172;
|
|
float tmpvar_173;
|
|
tmpvar_173 = max (fxaaQualityEdgeThresholdMin_48, rangeMaxScaled_119);
|
|
float tmpvar_174;
|
|
tmpvar_174 = tmpvar_173;
|
|
rangeMaxClamped_117 = tmpvar_174;
|
|
bool tmpvar_175;
|
|
tmpvar_175 = (range_118 < rangeMaxClamped_117);
|
|
earlyExit_116 = tmpvar_175;
|
|
if (earlyExit_116) {
|
|
return rgbyM_132;
|
|
};
|
|
vec4 tmpvar_176;
|
|
tmpvar_176.zw = vec2(0.0, 0.0);
|
|
tmpvar_176.xy = (posM_133 + (vec2(-1.0, -1.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_177;
|
|
tmpvar_177 = xll_tex2Dlod (tex_39, tmpvar_176);
|
|
float tmpvar_178;
|
|
tmpvar_178 = FxaaLuma (tmpvar_177);
|
|
float tmpvar_179;
|
|
tmpvar_179 = tmpvar_178;
|
|
lumaNW_115 = tmpvar_179;
|
|
vec4 tmpvar_180;
|
|
tmpvar_180.zw = vec2(0.0, 0.0);
|
|
tmpvar_180.xy = (posM_133 + (vec2(1.0, 1.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_181;
|
|
tmpvar_181 = xll_tex2Dlod (tex_39, tmpvar_180);
|
|
float tmpvar_182;
|
|
tmpvar_182 = FxaaLuma (tmpvar_181);
|
|
float tmpvar_183;
|
|
tmpvar_183 = tmpvar_182;
|
|
lumaSE_114 = tmpvar_183;
|
|
vec4 tmpvar_184;
|
|
tmpvar_184.zw = vec2(0.0, 0.0);
|
|
tmpvar_184.xy = (posM_133 + (vec2(1.0, -1.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_185;
|
|
tmpvar_185 = xll_tex2Dlod (tex_39, tmpvar_184);
|
|
float tmpvar_186;
|
|
tmpvar_186 = FxaaLuma (tmpvar_185);
|
|
float tmpvar_187;
|
|
tmpvar_187 = tmpvar_186;
|
|
lumaNE_113 = tmpvar_187;
|
|
vec4 tmpvar_188;
|
|
tmpvar_188.zw = vec2(0.0, 0.0);
|
|
tmpvar_188.xy = (posM_133 + (vec2(-1.0, 1.0) * fxaaQualityRcpFrame_42.xy)).xy;
|
|
vec4 tmpvar_189;
|
|
tmpvar_189 = xll_tex2Dlod (tex_39, tmpvar_188);
|
|
float tmpvar_190;
|
|
tmpvar_190 = FxaaLuma (tmpvar_189);
|
|
float tmpvar_191;
|
|
tmpvar_191 = tmpvar_190;
|
|
lumaSW_112 = tmpvar_191;
|
|
float tmpvar_192;
|
|
tmpvar_192 = (lumaN_129 + lumaS_131);
|
|
lumaNS_111 = tmpvar_192;
|
|
float tmpvar_193;
|
|
tmpvar_193 = (lumaW_128 + lumaE_130);
|
|
lumaWE_110 = tmpvar_193;
|
|
float tmpvar_194;
|
|
tmpvar_194 = (1.0 / range_118);
|
|
subpixRcpRange_109 = tmpvar_194;
|
|
float tmpvar_195;
|
|
tmpvar_195 = (lumaNS_111 + lumaWE_110);
|
|
subpixNSWE_108 = tmpvar_195;
|
|
float tmpvar_196;
|
|
tmpvar_196 = ((-(2.0) * rgbyM_132.w) + lumaNS_111);
|
|
edgeHorz1_107 = tmpvar_196;
|
|
float tmpvar_197;
|
|
tmpvar_197 = ((-(2.0) * rgbyM_132.w) + lumaWE_110);
|
|
edgeVert1_106 = tmpvar_197;
|
|
float tmpvar_198;
|
|
tmpvar_198 = (lumaNE_113 + lumaSE_114);
|
|
lumaNESE_105 = tmpvar_198;
|
|
float tmpvar_199;
|
|
tmpvar_199 = (lumaNW_115 + lumaNE_113);
|
|
lumaNWNE_104 = tmpvar_199;
|
|
float tmpvar_200;
|
|
tmpvar_200 = ((-(2.0) * lumaE_130) + lumaNESE_105);
|
|
edgeHorz2_103 = tmpvar_200;
|
|
float tmpvar_201;
|
|
tmpvar_201 = ((-(2.0) * lumaN_129) + lumaNWNE_104);
|
|
edgeVert2_102 = tmpvar_201;
|
|
float tmpvar_202;
|
|
tmpvar_202 = (lumaNW_115 + lumaSW_112);
|
|
lumaNWSW_101 = tmpvar_202;
|
|
float tmpvar_203;
|
|
tmpvar_203 = (lumaSW_112 + lumaSE_114);
|
|
lumaSWSE_100 = tmpvar_203;
|
|
float tmpvar_204;
|
|
tmpvar_204 = abs (edgeHorz1_107);
|
|
float tmpvar_205;
|
|
tmpvar_205 = abs (edgeHorz2_103);
|
|
float tmpvar_206;
|
|
tmpvar_206 = ((tmpvar_204 * 2.0) + tmpvar_205);
|
|
edgeHorz4_99 = tmpvar_206;
|
|
float tmpvar_207;
|
|
tmpvar_207 = abs (edgeVert1_106);
|
|
float tmpvar_208;
|
|
tmpvar_208 = abs (edgeVert2_102);
|
|
float tmpvar_209;
|
|
tmpvar_209 = ((tmpvar_207 * 2.0) + tmpvar_208);
|
|
edgeVert4_98 = tmpvar_209;
|
|
float tmpvar_210;
|
|
tmpvar_210 = ((-(2.0) * lumaW_128) + lumaNWSW_101);
|
|
edgeHorz3_97 = tmpvar_210;
|
|
float tmpvar_211;
|
|
tmpvar_211 = ((-(2.0) * lumaS_131) + lumaSWSE_100);
|
|
edgeVert3_96 = tmpvar_211;
|
|
float tmpvar_212;
|
|
tmpvar_212 = abs (edgeHorz3_97);
|
|
float tmpvar_213;
|
|
tmpvar_213 = (tmpvar_212 + edgeHorz4_99);
|
|
edgeHorz_95 = tmpvar_213;
|
|
float tmpvar_214;
|
|
tmpvar_214 = abs (edgeVert3_96);
|
|
float tmpvar_215;
|
|
tmpvar_215 = (tmpvar_214 + edgeVert4_98);
|
|
edgeVert_94 = tmpvar_215;
|
|
float tmpvar_216;
|
|
tmpvar_216 = (lumaNWSW_101 + lumaNESE_105);
|
|
subpixNWSWNESE_93 = tmpvar_216;
|
|
float tmpvar_217;
|
|
tmpvar_217 = fxaaQualityRcpFrame_42.x;
|
|
lengthSign_92 = tmpvar_217;
|
|
bool tmpvar_218;
|
|
tmpvar_218 = (edgeHorz_95 >= edgeVert_94);
|
|
horzSpan_91 = tmpvar_218;
|
|
float tmpvar_219;
|
|
tmpvar_219 = ((subpixNSWE_108 * 2.0) + subpixNWSWNESE_93);
|
|
subpixA_90 = tmpvar_219;
|
|
if (!(horzSpan_91)) {
|
|
float tmpvar_220;
|
|
tmpvar_220 = lumaW_128;
|
|
lumaN_129 = tmpvar_220;
|
|
};
|
|
if (!(horzSpan_91)) {
|
|
float tmpvar_221;
|
|
tmpvar_221 = lumaE_130;
|
|
lumaS_131 = tmpvar_221;
|
|
};
|
|
if (horzSpan_91) {
|
|
float tmpvar_222;
|
|
tmpvar_222 = fxaaQualityRcpFrame_42.y;
|
|
lengthSign_92 = tmpvar_222;
|
|
};
|
|
float tmpvar_223;
|
|
tmpvar_223 = ((subpixA_90 * 0.0833333) - rgbyM_132.w);
|
|
subpixB_89 = tmpvar_223;
|
|
float tmpvar_224;
|
|
tmpvar_224 = (lumaN_129 - rgbyM_132.w);
|
|
gradientN_88 = tmpvar_224;
|
|
float tmpvar_225;
|
|
tmpvar_225 = (lumaS_131 - rgbyM_132.w);
|
|
gradientS_87 = tmpvar_225;
|
|
float tmpvar_226;
|
|
tmpvar_226 = (lumaN_129 + rgbyM_132.w);
|
|
lumaNN_86 = tmpvar_226;
|
|
float tmpvar_227;
|
|
tmpvar_227 = (lumaS_131 + rgbyM_132.w);
|
|
lumaSS_85 = tmpvar_227;
|
|
float tmpvar_228;
|
|
tmpvar_228 = abs (gradientN_88);
|
|
float tmpvar_229;
|
|
tmpvar_229 = abs (gradientS_87);
|
|
bool tmpvar_230;
|
|
tmpvar_230 = (tmpvar_228 >= tmpvar_229);
|
|
pairN_84 = tmpvar_230;
|
|
float tmpvar_231;
|
|
tmpvar_231 = abs (gradientN_88);
|
|
float tmpvar_232;
|
|
tmpvar_232 = abs (gradientS_87);
|
|
float tmpvar_233;
|
|
tmpvar_233 = max (tmpvar_231, tmpvar_232);
|
|
float tmpvar_234;
|
|
tmpvar_234 = tmpvar_233;
|
|
gradient_83 = tmpvar_234;
|
|
if (pairN_84) {
|
|
float tmpvar_235;
|
|
tmpvar_235 = -(lengthSign_92);
|
|
lengthSign_92 = tmpvar_235;
|
|
};
|
|
float tmpvar_236;
|
|
tmpvar_236 = abs (subpixB_89);
|
|
float tmpvar_237;
|
|
tmpvar_237 = xll_saturate ((tmpvar_236 * subpixRcpRange_109));
|
|
float tmpvar_238;
|
|
tmpvar_238 = tmpvar_237;
|
|
subpixC_82 = tmpvar_238;
|
|
float tmpvar_239;
|
|
tmpvar_239 = posM_133.x;
|
|
posB_81.x = tmpvar_239;
|
|
float tmpvar_240;
|
|
tmpvar_240 = posM_133.y;
|
|
posB_81.y = vec2(tmpvar_240).y;
|
|
float tmpvar_241;
|
|
if (!(horzSpan_91)) {
|
|
tmpvar_241 = 0.0;
|
|
} else {
|
|
tmpvar_241 = fxaaQualityRcpFrame_42.x;
|
|
};
|
|
float tmpvar_242;
|
|
tmpvar_242 = tmpvar_241;
|
|
offNP_80.x = tmpvar_242;
|
|
float tmpvar_243;
|
|
if (horzSpan_91) {
|
|
tmpvar_243 = 0.0;
|
|
} else {
|
|
tmpvar_243 = fxaaQualityRcpFrame_42.y;
|
|
};
|
|
float tmpvar_244;
|
|
tmpvar_244 = tmpvar_243;
|
|
offNP_80.y = vec2(tmpvar_244).y;
|
|
if (!(horzSpan_91)) {
|
|
float tmpvar_245;
|
|
tmpvar_245 = (posB_81.x + (lengthSign_92 * 0.5));
|
|
posB_81.x = tmpvar_245;
|
|
};
|
|
if (horzSpan_91) {
|
|
float tmpvar_246;
|
|
tmpvar_246 = (posB_81.y + (lengthSign_92 * 0.5));
|
|
posB_81.y = vec2(tmpvar_246).y;
|
|
};
|
|
float tmpvar_247;
|
|
tmpvar_247 = (posB_81.x - (offNP_80.x * 1.0));
|
|
posN_79.x = tmpvar_247;
|
|
float tmpvar_248;
|
|
tmpvar_248 = (posB_81.y - (offNP_80.y * 1.0));
|
|
posN_79.y = vec2(tmpvar_248).y;
|
|
float tmpvar_249;
|
|
tmpvar_249 = (posB_81.x + (offNP_80.x * 1.0));
|
|
posP_78.x = tmpvar_249;
|
|
float tmpvar_250;
|
|
tmpvar_250 = (posB_81.y + (offNP_80.y * 1.0));
|
|
posP_78.y = vec2(tmpvar_250).y;
|
|
float tmpvar_251;
|
|
tmpvar_251 = ((-(2.0) * subpixC_82) + 3.0);
|
|
subpixD_77 = tmpvar_251;
|
|
vec4 tmpvar_252;
|
|
tmpvar_252.zw = vec2(0.0, 0.0);
|
|
tmpvar_252.xy = posN_79.xy;
|
|
vec4 tmpvar_253;
|
|
tmpvar_253 = xll_tex2Dlod (tex_39, tmpvar_252);
|
|
float tmpvar_254;
|
|
tmpvar_254 = FxaaLuma (tmpvar_253);
|
|
float tmpvar_255;
|
|
tmpvar_255 = tmpvar_254;
|
|
lumaEndN_76 = tmpvar_255;
|
|
float tmpvar_256;
|
|
tmpvar_256 = (subpixC_82 * subpixC_82);
|
|
subpixE_75 = tmpvar_256;
|
|
vec4 tmpvar_257;
|
|
tmpvar_257.zw = vec2(0.0, 0.0);
|
|
tmpvar_257.xy = posP_78.xy;
|
|
vec4 tmpvar_258;
|
|
tmpvar_258 = xll_tex2Dlod (tex_39, tmpvar_257);
|
|
float tmpvar_259;
|
|
tmpvar_259 = FxaaLuma (tmpvar_258);
|
|
float tmpvar_260;
|
|
tmpvar_260 = tmpvar_259;
|
|
lumaEndP_74 = tmpvar_260;
|
|
if (!(pairN_84)) {
|
|
float tmpvar_261;
|
|
tmpvar_261 = lumaSS_85;
|
|
lumaNN_86 = tmpvar_261;
|
|
};
|
|
float tmpvar_262;
|
|
tmpvar_262 = ((gradient_83 * 1.0) / 4.0);
|
|
gradientScaled_73 = tmpvar_262;
|
|
float tmpvar_263;
|
|
tmpvar_263 = (rgbyM_132.w - (lumaNN_86 * 0.5));
|
|
lumaMM_72 = tmpvar_263;
|
|
float tmpvar_264;
|
|
tmpvar_264 = (subpixD_77 * subpixE_75);
|
|
subpixF_71 = tmpvar_264;
|
|
bool tmpvar_265;
|
|
tmpvar_265 = (lumaMM_72 < 0.0);
|
|
lumaMLTZero_70 = tmpvar_265;
|
|
float tmpvar_266;
|
|
tmpvar_266 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_266;
|
|
float tmpvar_267;
|
|
tmpvar_267 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_267;
|
|
float tmpvar_268;
|
|
tmpvar_268 = abs (lumaEndN_76);
|
|
bool tmpvar_269;
|
|
tmpvar_269 = (tmpvar_268 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_269;
|
|
float tmpvar_270;
|
|
tmpvar_270 = abs (lumaEndP_74);
|
|
bool tmpvar_271;
|
|
tmpvar_271 = (tmpvar_270 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_271;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_272;
|
|
tmpvar_272 = (posN_79.x - (offNP_80.x * 1.0));
|
|
posN_79.x = tmpvar_272;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_273;
|
|
tmpvar_273 = (posN_79.y - (offNP_80.y * 1.0));
|
|
posN_79.y = vec2(tmpvar_273).y;
|
|
};
|
|
bool tmpvar_274;
|
|
tmpvar_274 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_274;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_275;
|
|
tmpvar_275 = (posP_78.x + (offNP_80.x * 1.0));
|
|
posP_78.x = tmpvar_275;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_276;
|
|
tmpvar_276 = (posP_78.y + (offNP_80.y * 1.0));
|
|
posP_78.y = vec2(tmpvar_276).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_277;
|
|
tmpvar_277.zw = vec2(0.0, 0.0);
|
|
tmpvar_277.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_278;
|
|
tmpvar_278 = xll_tex2Dlod (tex_39, tmpvar_277);
|
|
float tmpvar_279;
|
|
tmpvar_279 = FxaaLuma (tmpvar_278);
|
|
float tmpvar_280;
|
|
tmpvar_280 = tmpvar_279;
|
|
lumaEndN_76 = tmpvar_280;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_281;
|
|
tmpvar_281.zw = vec2(0.0, 0.0);
|
|
tmpvar_281.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_282;
|
|
tmpvar_282 = xll_tex2Dlod (tex_39, tmpvar_281);
|
|
float tmpvar_283;
|
|
tmpvar_283 = FxaaLuma (tmpvar_282);
|
|
float tmpvar_284;
|
|
tmpvar_284 = tmpvar_283;
|
|
lumaEndP_74 = tmpvar_284;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_285;
|
|
tmpvar_285 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_285;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_286;
|
|
tmpvar_286 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_286;
|
|
};
|
|
float tmpvar_287;
|
|
tmpvar_287 = abs (lumaEndN_76);
|
|
bool tmpvar_288;
|
|
tmpvar_288 = (tmpvar_287 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_288;
|
|
float tmpvar_289;
|
|
tmpvar_289 = abs (lumaEndP_74);
|
|
bool tmpvar_290;
|
|
tmpvar_290 = (tmpvar_289 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_290;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_291;
|
|
tmpvar_291 = (posN_79.x - (offNP_80.x * 1.0));
|
|
posN_79.x = tmpvar_291;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_292;
|
|
tmpvar_292 = (posN_79.y - (offNP_80.y * 1.0));
|
|
posN_79.y = vec2(tmpvar_292).y;
|
|
};
|
|
bool tmpvar_293;
|
|
tmpvar_293 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_293;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_294;
|
|
tmpvar_294 = (posP_78.x + (offNP_80.x * 1.0));
|
|
posP_78.x = tmpvar_294;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_295;
|
|
tmpvar_295 = (posP_78.y + (offNP_80.y * 1.0));
|
|
posP_78.y = vec2(tmpvar_295).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_296;
|
|
tmpvar_296.zw = vec2(0.0, 0.0);
|
|
tmpvar_296.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_297;
|
|
tmpvar_297 = xll_tex2Dlod (tex_39, tmpvar_296);
|
|
float tmpvar_298;
|
|
tmpvar_298 = FxaaLuma (tmpvar_297);
|
|
float tmpvar_299;
|
|
tmpvar_299 = tmpvar_298;
|
|
lumaEndN_76 = tmpvar_299;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_300;
|
|
tmpvar_300.zw = vec2(0.0, 0.0);
|
|
tmpvar_300.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_301;
|
|
tmpvar_301 = xll_tex2Dlod (tex_39, tmpvar_300);
|
|
float tmpvar_302;
|
|
tmpvar_302 = FxaaLuma (tmpvar_301);
|
|
float tmpvar_303;
|
|
tmpvar_303 = tmpvar_302;
|
|
lumaEndP_74 = tmpvar_303;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_304;
|
|
tmpvar_304 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_304;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_305;
|
|
tmpvar_305 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_305;
|
|
};
|
|
float tmpvar_306;
|
|
tmpvar_306 = abs (lumaEndN_76);
|
|
bool tmpvar_307;
|
|
tmpvar_307 = (tmpvar_306 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_307;
|
|
float tmpvar_308;
|
|
tmpvar_308 = abs (lumaEndP_74);
|
|
bool tmpvar_309;
|
|
tmpvar_309 = (tmpvar_308 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_309;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_310;
|
|
tmpvar_310 = (posN_79.x - (offNP_80.x * 1.0));
|
|
posN_79.x = tmpvar_310;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_311;
|
|
tmpvar_311 = (posN_79.y - (offNP_80.y * 1.0));
|
|
posN_79.y = vec2(tmpvar_311).y;
|
|
};
|
|
bool tmpvar_312;
|
|
tmpvar_312 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_312;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_313;
|
|
tmpvar_313 = (posP_78.x + (offNP_80.x * 1.0));
|
|
posP_78.x = tmpvar_313;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_314;
|
|
tmpvar_314 = (posP_78.y + (offNP_80.y * 1.0));
|
|
posP_78.y = vec2(tmpvar_314).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_315;
|
|
tmpvar_315.zw = vec2(0.0, 0.0);
|
|
tmpvar_315.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_316;
|
|
tmpvar_316 = xll_tex2Dlod (tex_39, tmpvar_315);
|
|
float tmpvar_317;
|
|
tmpvar_317 = FxaaLuma (tmpvar_316);
|
|
float tmpvar_318;
|
|
tmpvar_318 = tmpvar_317;
|
|
lumaEndN_76 = tmpvar_318;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_319;
|
|
tmpvar_319.zw = vec2(0.0, 0.0);
|
|
tmpvar_319.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_320;
|
|
tmpvar_320 = xll_tex2Dlod (tex_39, tmpvar_319);
|
|
float tmpvar_321;
|
|
tmpvar_321 = FxaaLuma (tmpvar_320);
|
|
float tmpvar_322;
|
|
tmpvar_322 = tmpvar_321;
|
|
lumaEndP_74 = tmpvar_322;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_323;
|
|
tmpvar_323 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_323;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_324;
|
|
tmpvar_324 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_324;
|
|
};
|
|
float tmpvar_325;
|
|
tmpvar_325 = abs (lumaEndN_76);
|
|
bool tmpvar_326;
|
|
tmpvar_326 = (tmpvar_325 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_326;
|
|
float tmpvar_327;
|
|
tmpvar_327 = abs (lumaEndP_74);
|
|
bool tmpvar_328;
|
|
tmpvar_328 = (tmpvar_327 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_328;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_329;
|
|
tmpvar_329 = (posN_79.x - (offNP_80.x * 1.0));
|
|
posN_79.x = tmpvar_329;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_330;
|
|
tmpvar_330 = (posN_79.y - (offNP_80.y * 1.0));
|
|
posN_79.y = vec2(tmpvar_330).y;
|
|
};
|
|
bool tmpvar_331;
|
|
tmpvar_331 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_331;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_332;
|
|
tmpvar_332 = (posP_78.x + (offNP_80.x * 1.0));
|
|
posP_78.x = tmpvar_332;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_333;
|
|
tmpvar_333 = (posP_78.y + (offNP_80.y * 1.0));
|
|
posP_78.y = vec2(tmpvar_333).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_334;
|
|
tmpvar_334.zw = vec2(0.0, 0.0);
|
|
tmpvar_334.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_335;
|
|
tmpvar_335 = xll_tex2Dlod (tex_39, tmpvar_334);
|
|
float tmpvar_336;
|
|
tmpvar_336 = FxaaLuma (tmpvar_335);
|
|
float tmpvar_337;
|
|
tmpvar_337 = tmpvar_336;
|
|
lumaEndN_76 = tmpvar_337;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_338;
|
|
tmpvar_338.zw = vec2(0.0, 0.0);
|
|
tmpvar_338.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_339;
|
|
tmpvar_339 = xll_tex2Dlod (tex_39, tmpvar_338);
|
|
float tmpvar_340;
|
|
tmpvar_340 = FxaaLuma (tmpvar_339);
|
|
float tmpvar_341;
|
|
tmpvar_341 = tmpvar_340;
|
|
lumaEndP_74 = tmpvar_341;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_342;
|
|
tmpvar_342 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_342;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_343;
|
|
tmpvar_343 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_343;
|
|
};
|
|
float tmpvar_344;
|
|
tmpvar_344 = abs (lumaEndN_76);
|
|
bool tmpvar_345;
|
|
tmpvar_345 = (tmpvar_344 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_345;
|
|
float tmpvar_346;
|
|
tmpvar_346 = abs (lumaEndP_74);
|
|
bool tmpvar_347;
|
|
tmpvar_347 = (tmpvar_346 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_347;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_348;
|
|
tmpvar_348 = (posN_79.x - (offNP_80.x * 1.5));
|
|
posN_79.x = tmpvar_348;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_349;
|
|
tmpvar_349 = (posN_79.y - (offNP_80.y * 1.5));
|
|
posN_79.y = vec2(tmpvar_349).y;
|
|
};
|
|
bool tmpvar_350;
|
|
tmpvar_350 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_350;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_351;
|
|
tmpvar_351 = (posP_78.x + (offNP_80.x * 1.5));
|
|
posP_78.x = tmpvar_351;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_352;
|
|
tmpvar_352 = (posP_78.y + (offNP_80.y * 1.5));
|
|
posP_78.y = vec2(tmpvar_352).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_353;
|
|
tmpvar_353.zw = vec2(0.0, 0.0);
|
|
tmpvar_353.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_354;
|
|
tmpvar_354 = xll_tex2Dlod (tex_39, tmpvar_353);
|
|
float tmpvar_355;
|
|
tmpvar_355 = FxaaLuma (tmpvar_354);
|
|
float tmpvar_356;
|
|
tmpvar_356 = tmpvar_355;
|
|
lumaEndN_76 = tmpvar_356;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_357;
|
|
tmpvar_357.zw = vec2(0.0, 0.0);
|
|
tmpvar_357.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_358;
|
|
tmpvar_358 = xll_tex2Dlod (tex_39, tmpvar_357);
|
|
float tmpvar_359;
|
|
tmpvar_359 = FxaaLuma (tmpvar_358);
|
|
float tmpvar_360;
|
|
tmpvar_360 = tmpvar_359;
|
|
lumaEndP_74 = tmpvar_360;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_361;
|
|
tmpvar_361 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_361;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_362;
|
|
tmpvar_362 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_362;
|
|
};
|
|
float tmpvar_363;
|
|
tmpvar_363 = abs (lumaEndN_76);
|
|
bool tmpvar_364;
|
|
tmpvar_364 = (tmpvar_363 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_364;
|
|
float tmpvar_365;
|
|
tmpvar_365 = abs (lumaEndP_74);
|
|
bool tmpvar_366;
|
|
tmpvar_366 = (tmpvar_365 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_366;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_367;
|
|
tmpvar_367 = (posN_79.x - (offNP_80.x * 2.0));
|
|
posN_79.x = tmpvar_367;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_368;
|
|
tmpvar_368 = (posN_79.y - (offNP_80.y * 2.0));
|
|
posN_79.y = vec2(tmpvar_368).y;
|
|
};
|
|
bool tmpvar_369;
|
|
tmpvar_369 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_369;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_370;
|
|
tmpvar_370 = (posP_78.x + (offNP_80.x * 2.0));
|
|
posP_78.x = tmpvar_370;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_371;
|
|
tmpvar_371 = (posP_78.y + (offNP_80.y * 2.0));
|
|
posP_78.y = vec2(tmpvar_371).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_372;
|
|
tmpvar_372.zw = vec2(0.0, 0.0);
|
|
tmpvar_372.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_373;
|
|
tmpvar_373 = xll_tex2Dlod (tex_39, tmpvar_372);
|
|
float tmpvar_374;
|
|
tmpvar_374 = FxaaLuma (tmpvar_373);
|
|
float tmpvar_375;
|
|
tmpvar_375 = tmpvar_374;
|
|
lumaEndN_76 = tmpvar_375;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_376;
|
|
tmpvar_376.zw = vec2(0.0, 0.0);
|
|
tmpvar_376.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_377;
|
|
tmpvar_377 = xll_tex2Dlod (tex_39, tmpvar_376);
|
|
float tmpvar_378;
|
|
tmpvar_378 = FxaaLuma (tmpvar_377);
|
|
float tmpvar_379;
|
|
tmpvar_379 = tmpvar_378;
|
|
lumaEndP_74 = tmpvar_379;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_380;
|
|
tmpvar_380 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_380;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_381;
|
|
tmpvar_381 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_381;
|
|
};
|
|
float tmpvar_382;
|
|
tmpvar_382 = abs (lumaEndN_76);
|
|
bool tmpvar_383;
|
|
tmpvar_383 = (tmpvar_382 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_383;
|
|
float tmpvar_384;
|
|
tmpvar_384 = abs (lumaEndP_74);
|
|
bool tmpvar_385;
|
|
tmpvar_385 = (tmpvar_384 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_385;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_386;
|
|
tmpvar_386 = (posN_79.x - (offNP_80.x * 2.0));
|
|
posN_79.x = tmpvar_386;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_387;
|
|
tmpvar_387 = (posN_79.y - (offNP_80.y * 2.0));
|
|
posN_79.y = vec2(tmpvar_387).y;
|
|
};
|
|
bool tmpvar_388;
|
|
tmpvar_388 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_388;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_389;
|
|
tmpvar_389 = (posP_78.x + (offNP_80.x * 2.0));
|
|
posP_78.x = tmpvar_389;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_390;
|
|
tmpvar_390 = (posP_78.y + (offNP_80.y * 2.0));
|
|
posP_78.y = vec2(tmpvar_390).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_391;
|
|
tmpvar_391.zw = vec2(0.0, 0.0);
|
|
tmpvar_391.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_392;
|
|
tmpvar_392 = xll_tex2Dlod (tex_39, tmpvar_391);
|
|
float tmpvar_393;
|
|
tmpvar_393 = FxaaLuma (tmpvar_392);
|
|
float tmpvar_394;
|
|
tmpvar_394 = tmpvar_393;
|
|
lumaEndN_76 = tmpvar_394;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_395;
|
|
tmpvar_395.zw = vec2(0.0, 0.0);
|
|
tmpvar_395.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_396;
|
|
tmpvar_396 = xll_tex2Dlod (tex_39, tmpvar_395);
|
|
float tmpvar_397;
|
|
tmpvar_397 = FxaaLuma (tmpvar_396);
|
|
float tmpvar_398;
|
|
tmpvar_398 = tmpvar_397;
|
|
lumaEndP_74 = tmpvar_398;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_399;
|
|
tmpvar_399 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_399;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_400;
|
|
tmpvar_400 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_400;
|
|
};
|
|
float tmpvar_401;
|
|
tmpvar_401 = abs (lumaEndN_76);
|
|
bool tmpvar_402;
|
|
tmpvar_402 = (tmpvar_401 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_402;
|
|
float tmpvar_403;
|
|
tmpvar_403 = abs (lumaEndP_74);
|
|
bool tmpvar_404;
|
|
tmpvar_404 = (tmpvar_403 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_404;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_405;
|
|
tmpvar_405 = (posN_79.x - (offNP_80.x * 2.0));
|
|
posN_79.x = tmpvar_405;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_406;
|
|
tmpvar_406 = (posN_79.y - (offNP_80.y * 2.0));
|
|
posN_79.y = vec2(tmpvar_406).y;
|
|
};
|
|
bool tmpvar_407;
|
|
tmpvar_407 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_407;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_408;
|
|
tmpvar_408 = (posP_78.x + (offNP_80.x * 2.0));
|
|
posP_78.x = tmpvar_408;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_409;
|
|
tmpvar_409 = (posP_78.y + (offNP_80.y * 2.0));
|
|
posP_78.y = vec2(tmpvar_409).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_410;
|
|
tmpvar_410.zw = vec2(0.0, 0.0);
|
|
tmpvar_410.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_411;
|
|
tmpvar_411 = xll_tex2Dlod (tex_39, tmpvar_410);
|
|
float tmpvar_412;
|
|
tmpvar_412 = FxaaLuma (tmpvar_411);
|
|
float tmpvar_413;
|
|
tmpvar_413 = tmpvar_412;
|
|
lumaEndN_76 = tmpvar_413;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_414;
|
|
tmpvar_414.zw = vec2(0.0, 0.0);
|
|
tmpvar_414.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_415;
|
|
tmpvar_415 = xll_tex2Dlod (tex_39, tmpvar_414);
|
|
float tmpvar_416;
|
|
tmpvar_416 = FxaaLuma (tmpvar_415);
|
|
float tmpvar_417;
|
|
tmpvar_417 = tmpvar_416;
|
|
lumaEndP_74 = tmpvar_417;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_418;
|
|
tmpvar_418 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_418;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_419;
|
|
tmpvar_419 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_419;
|
|
};
|
|
float tmpvar_420;
|
|
tmpvar_420 = abs (lumaEndN_76);
|
|
bool tmpvar_421;
|
|
tmpvar_421 = (tmpvar_420 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_421;
|
|
float tmpvar_422;
|
|
tmpvar_422 = abs (lumaEndP_74);
|
|
bool tmpvar_423;
|
|
tmpvar_423 = (tmpvar_422 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_423;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_424;
|
|
tmpvar_424 = (posN_79.x - (offNP_80.x * 2.0));
|
|
posN_79.x = tmpvar_424;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_425;
|
|
tmpvar_425 = (posN_79.y - (offNP_80.y * 2.0));
|
|
posN_79.y = vec2(tmpvar_425).y;
|
|
};
|
|
bool tmpvar_426;
|
|
tmpvar_426 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_426;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_427;
|
|
tmpvar_427 = (posP_78.x + (offNP_80.x * 2.0));
|
|
posP_78.x = tmpvar_427;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_428;
|
|
tmpvar_428 = (posP_78.y + (offNP_80.y * 2.0));
|
|
posP_78.y = vec2(tmpvar_428).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_429;
|
|
tmpvar_429.zw = vec2(0.0, 0.0);
|
|
tmpvar_429.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_430;
|
|
tmpvar_430 = xll_tex2Dlod (tex_39, tmpvar_429);
|
|
float tmpvar_431;
|
|
tmpvar_431 = FxaaLuma (tmpvar_430);
|
|
float tmpvar_432;
|
|
tmpvar_432 = tmpvar_431;
|
|
lumaEndN_76 = tmpvar_432;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_433;
|
|
tmpvar_433.zw = vec2(0.0, 0.0);
|
|
tmpvar_433.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_434;
|
|
tmpvar_434 = xll_tex2Dlod (tex_39, tmpvar_433);
|
|
float tmpvar_435;
|
|
tmpvar_435 = FxaaLuma (tmpvar_434);
|
|
float tmpvar_436;
|
|
tmpvar_436 = tmpvar_435;
|
|
lumaEndP_74 = tmpvar_436;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_437;
|
|
tmpvar_437 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_437;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_438;
|
|
tmpvar_438 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_438;
|
|
};
|
|
float tmpvar_439;
|
|
tmpvar_439 = abs (lumaEndN_76);
|
|
bool tmpvar_440;
|
|
tmpvar_440 = (tmpvar_439 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_440;
|
|
float tmpvar_441;
|
|
tmpvar_441 = abs (lumaEndP_74);
|
|
bool tmpvar_442;
|
|
tmpvar_442 = (tmpvar_441 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_442;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_443;
|
|
tmpvar_443 = (posN_79.x - (offNP_80.x * 4.0));
|
|
posN_79.x = tmpvar_443;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_444;
|
|
tmpvar_444 = (posN_79.y - (offNP_80.y * 4.0));
|
|
posN_79.y = vec2(tmpvar_444).y;
|
|
};
|
|
bool tmpvar_445;
|
|
tmpvar_445 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_445;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_446;
|
|
tmpvar_446 = (posP_78.x + (offNP_80.x * 4.0));
|
|
posP_78.x = tmpvar_446;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_447;
|
|
tmpvar_447 = (posP_78.y + (offNP_80.y * 4.0));
|
|
posP_78.y = vec2(tmpvar_447).y;
|
|
};
|
|
if (doneNP_67) {
|
|
if (!(doneN_69)) {
|
|
vec4 tmpvar_448;
|
|
tmpvar_448.zw = vec2(0.0, 0.0);
|
|
tmpvar_448.xy = posN_79.xy.xy;
|
|
vec4 tmpvar_449;
|
|
tmpvar_449 = xll_tex2Dlod (tex_39, tmpvar_448);
|
|
float tmpvar_450;
|
|
tmpvar_450 = FxaaLuma (tmpvar_449);
|
|
float tmpvar_451;
|
|
tmpvar_451 = tmpvar_450;
|
|
lumaEndN_76 = tmpvar_451;
|
|
};
|
|
if (!(doneP_68)) {
|
|
vec4 tmpvar_452;
|
|
tmpvar_452.zw = vec2(0.0, 0.0);
|
|
tmpvar_452.xy = posP_78.xy.xy;
|
|
vec4 tmpvar_453;
|
|
tmpvar_453 = xll_tex2Dlod (tex_39, tmpvar_452);
|
|
float tmpvar_454;
|
|
tmpvar_454 = FxaaLuma (tmpvar_453);
|
|
float tmpvar_455;
|
|
tmpvar_455 = tmpvar_454;
|
|
lumaEndP_74 = tmpvar_455;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_456;
|
|
tmpvar_456 = (lumaEndN_76 - (lumaNN_86 * 0.5));
|
|
lumaEndN_76 = tmpvar_456;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_457;
|
|
tmpvar_457 = (lumaEndP_74 - (lumaNN_86 * 0.5));
|
|
lumaEndP_74 = tmpvar_457;
|
|
};
|
|
float tmpvar_458;
|
|
tmpvar_458 = abs (lumaEndN_76);
|
|
bool tmpvar_459;
|
|
tmpvar_459 = (tmpvar_458 >= gradientScaled_73);
|
|
doneN_69 = tmpvar_459;
|
|
float tmpvar_460;
|
|
tmpvar_460 = abs (lumaEndP_74);
|
|
bool tmpvar_461;
|
|
tmpvar_461 = (tmpvar_460 >= gradientScaled_73);
|
|
doneP_68 = tmpvar_461;
|
|
if (!(doneN_69)) {
|
|
float tmpvar_462;
|
|
tmpvar_462 = (posN_79.x - (offNP_80.x * 8.0));
|
|
posN_79.x = tmpvar_462;
|
|
};
|
|
if (!(doneN_69)) {
|
|
float tmpvar_463;
|
|
tmpvar_463 = (posN_79.y - (offNP_80.y * 8.0));
|
|
posN_79.y = vec2(tmpvar_463).y;
|
|
};
|
|
bool tmpvar_464;
|
|
tmpvar_464 = (!(doneN_69) || !(doneP_68));
|
|
doneNP_67 = tmpvar_464;
|
|
if (!(doneP_68)) {
|
|
float tmpvar_465;
|
|
tmpvar_465 = (posP_78.x + (offNP_80.x * 8.0));
|
|
posP_78.x = tmpvar_465;
|
|
};
|
|
if (!(doneP_68)) {
|
|
float tmpvar_466;
|
|
tmpvar_466 = (posP_78.y + (offNP_80.y * 8.0));
|
|
posP_78.y = vec2(tmpvar_466).y;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
float tmpvar_467;
|
|
tmpvar_467 = (posM_133.x - posN_79.x);
|
|
dstN_66 = tmpvar_467;
|
|
float tmpvar_468;
|
|
tmpvar_468 = (posP_78.x - posM_133.x);
|
|
dstP_65 = tmpvar_468;
|
|
if (!(horzSpan_91)) {
|
|
float tmpvar_469;
|
|
tmpvar_469 = (posM_133.y - posN_79.y);
|
|
dstN_66 = tmpvar_469;
|
|
};
|
|
if (!(horzSpan_91)) {
|
|
float tmpvar_470;
|
|
tmpvar_470 = (posP_78.y - posM_133.y);
|
|
dstP_65 = tmpvar_470;
|
|
};
|
|
bool tmpvar_471;
|
|
tmpvar_471 = ((lumaEndN_76 < 0.0) != lumaMLTZero_70);
|
|
goodSpanN_64 = tmpvar_471;
|
|
float tmpvar_472;
|
|
tmpvar_472 = (dstP_65 + dstN_66);
|
|
spanLength_63 = tmpvar_472;
|
|
bool tmpvar_473;
|
|
tmpvar_473 = ((lumaEndP_74 < 0.0) != lumaMLTZero_70);
|
|
goodSpanP_62 = tmpvar_473;
|
|
float tmpvar_474;
|
|
tmpvar_474 = (1.0 / spanLength_63);
|
|
spanLengthRcp_61 = tmpvar_474;
|
|
bool tmpvar_475;
|
|
tmpvar_475 = (dstN_66 < dstP_65);
|
|
directionN_60 = tmpvar_475;
|
|
float tmpvar_476;
|
|
tmpvar_476 = min (dstN_66, dstP_65);
|
|
float tmpvar_477;
|
|
tmpvar_477 = tmpvar_476;
|
|
dst_59 = tmpvar_477;
|
|
bool tmpvar_478;
|
|
if (directionN_60) {
|
|
tmpvar_478 = goodSpanN_64;
|
|
} else {
|
|
tmpvar_478 = goodSpanP_62;
|
|
};
|
|
bool tmpvar_479;
|
|
tmpvar_479 = tmpvar_478;
|
|
goodSpan_58 = tmpvar_479;
|
|
float tmpvar_480;
|
|
tmpvar_480 = (subpixF_71 * subpixF_71);
|
|
subpixG_57 = tmpvar_480;
|
|
float tmpvar_481;
|
|
tmpvar_481 = ((dst_59 * -(spanLengthRcp_61)) + 0.5);
|
|
pixelOffset_56 = tmpvar_481;
|
|
float tmpvar_482;
|
|
tmpvar_482 = (subpixG_57 * fxaaQualitySubpix_46);
|
|
subpixH_55 = tmpvar_482;
|
|
float tmpvar_483;
|
|
if (goodSpan_58) {
|
|
tmpvar_483 = pixelOffset_56;
|
|
} else {
|
|
tmpvar_483 = 0.0;
|
|
};
|
|
float tmpvar_484;
|
|
tmpvar_484 = tmpvar_483;
|
|
pixelOffsetGood_54 = tmpvar_484;
|
|
float tmpvar_485;
|
|
tmpvar_485 = max (pixelOffsetGood_54, subpixH_55);
|
|
float tmpvar_486;
|
|
tmpvar_486 = tmpvar_485;
|
|
pixelOffsetSubpix_53 = tmpvar_486;
|
|
if (!(horzSpan_91)) {
|
|
float tmpvar_487;
|
|
tmpvar_487 = (posM_133.x + (pixelOffsetSubpix_53 * lengthSign_92));
|
|
posM_133.x = tmpvar_487;
|
|
};
|
|
if (horzSpan_91) {
|
|
float tmpvar_488;
|
|
tmpvar_488 = (posM_133.y + (pixelOffsetSubpix_53 * lengthSign_92));
|
|
posM_133.y = vec2(tmpvar_488).y;
|
|
};
|
|
vec4 tmpvar_489;
|
|
tmpvar_489.zw = vec2(0.0, 0.0);
|
|
tmpvar_489.xy = posM_133.xy;
|
|
vec4 tmpvar_490;
|
|
tmpvar_490 = xll_tex2Dlod (tex_39, tmpvar_489);
|
|
vec4 tmpvar_491;
|
|
tmpvar_491.xyz = tmpvar_490.xyz.xyz;
|
|
tmpvar_491.w = rgbyM_132.w;
|
|
return tmpvar_491;
|
|
}
|
|
|
|
vec4 xlat_main (
|
|
in v2f i_492
|
|
)
|
|
{
|
|
float fxaaN_493;
|
|
float tmpvar_494;
|
|
tmpvar_494 = 0.5;
|
|
fxaaN_493 = tmpvar_494;
|
|
vec4 tmpvar_495;
|
|
tmpvar_495.x = -(fxaaN_493);
|
|
tmpvar_495.y = -(fxaaN_493);
|
|
tmpvar_495.z = fxaaN_493;
|
|
tmpvar_495.w = fxaaN_493;
|
|
vec4 tmpvar_496;
|
|
tmpvar_496 = FxaaPixelShader (i_492.uv, i_492.uvPosPos, _MainTex, _MainTex, _MainTex, _MainTex_TexelSize.xy, (_MainTex_TexelSize.xyxy * tmpvar_495), (_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_496;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
v2f xlt_i_497;
|
|
vec4 xl_retval_498;
|
|
vec4 tmpvar_499;
|
|
tmpvar_499 = xlv_SV_POSITION.xyzw;
|
|
vec4 tmpvar_500;
|
|
tmpvar_500 = tmpvar_499;
|
|
xlt_i_497.pos = tmpvar_500;
|
|
vec2 tmpvar_501;
|
|
tmpvar_501 = xlv_TEXCOORD0.xy;
|
|
vec2 tmpvar_502;
|
|
tmpvar_502 = tmpvar_501;
|
|
xlt_i_497.uv = tmpvar_502;
|
|
vec4 tmpvar_503;
|
|
tmpvar_503 = xlv_TEXCOORD1.xyzw;
|
|
vec4 tmpvar_504;
|
|
tmpvar_504 = tmpvar_503;
|
|
xlt_i_497.uvPosPos = tmpvar_504;
|
|
vec4 tmpvar_505;
|
|
tmpvar_505 = xlat_main (xlt_i_497);
|
|
vec4 tmpvar_506;
|
|
tmpvar_506 = tmpvar_505;
|
|
xl_retval_498 = tmpvar_506;
|
|
vec4 tmpvar_507;
|
|
tmpvar_507 = xl_retval_498.xyzw;
|
|
vec4 tmpvar_508;
|
|
tmpvar_508 = tmpvar_507;
|
|
gl_FragData[0] = tmpvar_508;
|
|
}
|
|
|