1// GLSL shader autogenerated by cg2glsl.py.
2#if defined(VERTEX)
3
4#if __VERSION__ >= 130
5#define COMPAT_VARYING out
6#define COMPAT_ATTRIBUTE in
7#define COMPAT_TEXTURE texture
8#else
9#define COMPAT_VARYING varying
10#define COMPAT_ATTRIBUTE attribute
11#define COMPAT_TEXTURE texture2D
12#endif
13
14#ifdef GL_ES
15#define COMPAT_PRECISION mediump
16#else
17#define COMPAT_PRECISION
18#endif
19COMPAT_VARYING     vec2 VARps;
20COMPAT_VARYING     vec4 _t3;
21COMPAT_VARYING     vec4 _t2;
22COMPAT_VARYING     vec4 _t1;
23COMPAT_VARYING     vec2 _texCoord1;
24COMPAT_VARYING     vec4 _color1;
25COMPAT_VARYING     vec4 _position1;
26struct input_dummy {
27    vec2 _video_size;
28    vec2 _texture_size;
29    vec2 _output_dummy_size;
30};
31struct out_vertex {
32    vec4 _position1;
33    vec4 _color1;
34    vec2 _texCoord1;
35    vec4 _t1;
36    vec4 _t2;
37    vec4 _t3;
38    vec2 VARps;
39};
40out_vertex _ret_0;
41input_dummy _IN1;
42vec4 _r0010;
43vec4 _v0010;
44COMPAT_ATTRIBUTE vec4 VertexCoord;
45COMPAT_ATTRIBUTE vec4 COLOR;
46COMPAT_ATTRIBUTE vec4 TexCoord;
47COMPAT_VARYING vec4 COL0;
48COMPAT_VARYING vec4 TEX0;
49COMPAT_VARYING vec4 TEX1;
50COMPAT_VARYING vec4 TEX2;
51COMPAT_VARYING vec4 TEX3;
52
53uniform mat4 MVPMatrix;
54uniform COMPAT_PRECISION int FrameDirection;
55uniform COMPAT_PRECISION int FrameCount;
56uniform COMPAT_PRECISION vec2 OutputSize;
57uniform COMPAT_PRECISION vec2 TextureSize;
58uniform COMPAT_PRECISION vec2 InputSize;
59void main()
60{
61    out_vertex _OUT;
62    vec2 _ps;
63    _v0010 = vec4(float(VertexCoord.x), float(VertexCoord.y), float(VertexCoord.z), float(VertexCoord.w));
64    _r0010 = _v0010.x*MVPMatrix[0];
65    _r0010 = _r0010 + _v0010.y*MVPMatrix[1];
66    _r0010 = _r0010 + _v0010.z*MVPMatrix[2];
67    _r0010 = _r0010 + _v0010.w*MVPMatrix[3];
68    _OUT._position1 = vec4(float(_r0010.x), float(_r0010.y), float(_r0010.z), float(_r0010.w));
69    _ps = 1.00000000E+00/TextureSize;
70    _OUT._t1 = TexCoord.xxxy + vec4(float(float(-_ps.x)), 0.00000000E+00, float(float(_ps.x)), float(float(-_ps.y)));
71    _OUT._t2 = TexCoord.xxxy + vec4(float(float(-_ps.x)), 0.00000000E+00, float(float(_ps.x)), 0.00000000E+00);
72    _OUT._t3 = TexCoord.xxxy + vec4(float(float(-_ps.x)), 0.00000000E+00, float(float(_ps.x)), float(float(_ps.y)));
73    _ret_0._position1 = _OUT._position1;
74    _ret_0._color1 = COLOR;
75    _ret_0._texCoord1 = TexCoord.xy;
76    _ret_0._t1 = _OUT._t1;
77    _ret_0._t2 = _OUT._t2;
78    _ret_0._t3 = _OUT._t3;
79    VARps = _ps;
80    gl_Position = _OUT._position1;
81    COL0 = COLOR;
82    TEX0.xy = TexCoord.xy;
83    TEX1 = _OUT._t1;
84    TEX2 = _OUT._t2;
85    TEX3 = _OUT._t3;
86    return;
87    COL0 = _ret_0._color1;
88    TEX0.xy = _ret_0._texCoord1;
89    TEX1 = _ret_0._t1;
90    TEX2 = _ret_0._t2;
91    TEX3 = _ret_0._t3;
92}
93#elif defined(FRAGMENT)
94
95#if __VERSION__ >= 130
96#define COMPAT_VARYING in
97#define COMPAT_TEXTURE texture
98out vec4 FragColor;
99#else
100#define COMPAT_VARYING varying
101#define FragColor gl_FragColor
102#define COMPAT_TEXTURE texture2D
103#endif
104
105#ifdef GL_ES
106#ifdef GL_FRAGMENT_PRECISION_HIGH
107precision highp float;
108#else
109precision mediump float;
110#endif
111#define COMPAT_PRECISION mediump
112#else
113#define COMPAT_PRECISION
114#endif
115COMPAT_VARYING     vec2 VARps;
116COMPAT_VARYING     vec4 _t3;
117COMPAT_VARYING     vec4 _t2;
118COMPAT_VARYING     vec4 _t1;
119COMPAT_VARYING     vec2 _texCoord;
120COMPAT_VARYING     vec4 _color;
121struct input_dummy {
122    vec2 _video_size;
123    vec2 _texture_size;
124    vec2 _output_dummy_size;
125};
126struct out_vertex {
127    vec4 _color;
128    vec2 _texCoord;
129    vec4 _t1;
130    vec4 _t2;
131    vec4 _t3;
132    vec2 VARps;
133};
134vec4 _ret_0;
135float _TMP44;
136vec4 _TMP40;
137float _TMP39;
138float _TMP37;
139vec2 _TMP38;
140float _TMP36;
141float _TMP35;
142float _TMP34;
143float _TMP43;
144bool _TMP33;
145bool _TMP32;
146bool _TMP31;
147bool _TMP30;
148vec3 _TMP42;
149bool _TMP29;
150bool _TMP28;
151bool _TMP27;
152bool _TMP26;
153bool _TMP25;
154bool _TMP24;
155bool _TMP23;
156bool _TMP22;
157vec4 _TMP20;
158vec4 _TMP18;
159vec4 _TMP16;
160vec4 _TMP14;
161vec4 _TMP11;
162vec4 _TMP9;
163vec4 _TMP7;
164vec4 _TMP5;
165vec4 _TMP4;
166vec4 _TMP3;
167vec4 _TMP2;
168vec4 _TMP1;
169vec2 _TMP0;
170out_vertex _VAR1;
171uniform sampler2D Texture;
172input_dummy _IN1;
173uniform sampler2D LUT;
174vec2 _x0063;
175vec2 _val0065;
176vec2 _a0065;
177vec2 _c0069;
178vec2 _c0071;
179vec2 _c0073;
180vec3 _r0077;
181vec3 _v0077;
182vec3 _r0087;
183vec3 _v0087;
184vec3 _r0097;
185vec3 _v0097;
186vec3 _r0107;
187vec3 _v0107;
188vec3 _r0115;
189vec3 _v0115;
190vec3 _r0125;
191vec3 _v0125;
192vec3 _r0135;
193vec3 _v0135;
194vec3 _r0145;
195vec3 _v0145;
196vec3 _r0155;
197vec3 _v0155;
198bvec3 _res0163;
199vec3 _a0165;
200bvec3 _res0167;
201vec3 _a0169;
202bvec3 _res0171;
203vec3 _a0173;
204bvec3 _res0175;
205vec3 _a0177;
206bvec3 _res0179;
207vec3 _a0181;
208bvec3 _res0183;
209vec3 _a0185;
210bvec3 _res0187;
211vec3 _a0189;
212bvec3 _res0191;
213vec3 _a0193;
214bvec3 _res0195;
215vec3 _a0197;
216bvec3 _res0199;
217vec3 _a0201;
218bvec3 _res0203;
219vec3 _a0205;
220bvec3 _res0207;
221vec3 _a0209;
222vec3 _a0211;
223vec3 _a0213;
224vec3 _a0215;
225vec4 _a0217;
226vec2 _x0219;
227vec2 _c0223;
228vec3 _r0229;
229vec4 _v0229;
230COMPAT_VARYING vec4 TEX0;
231COMPAT_VARYING vec4 TEX1;
232COMPAT_VARYING vec4 TEX2;
233COMPAT_VARYING vec4 TEX3;
234
235uniform COMPAT_PRECISION int FrameDirection;
236uniform COMPAT_PRECISION int FrameCount;
237uniform COMPAT_PRECISION vec2 OutputSize;
238uniform COMPAT_PRECISION vec2 TextureSize;
239uniform COMPAT_PRECISION vec2 InputSize;
240void main()
241{
242    vec2 _fp;
243    vec2 _quad;
244    vec3 _w1;
245    vec3 _w2;
246    vec3 _w3;
247    vec3 _w4;
248    vec3 _w5;
249    vec3 _w6;
250    vec3 _w7;
251    vec3 _w8;
252    vec3 _w9;
253    bvec4 _cross;
254    vec2 _index;
255    vec4 _weights;
256    float _sum;
257    bvec3 _TMP50[3];
258    _x0063 = TEX0.xy*TextureSize;
259    _fp = fract(_x0063);
260    _a0065 = -5.00000000E-01 + _fp;
261    _val0065 = vec2(float((_a0065.x > 0.00000000E+00)), float((_a0065.y > 0.00000000E+00)));
262    _TMP0 = _val0065 - vec2(float((_a0065.x < 0.00000000E+00)), float((_a0065.y < 0.00000000E+00)));
263    _quad = vec2(float(_TMP0.x), float(_TMP0.y));
264    _TMP1 = COMPAT_TEXTURE(Texture, TEX0.xy);
265    _c0069 = TEX0.xy + vec2(VARps.x, VARps.y)*vec2(float(_quad.x), float(_quad.y));
266    _TMP2 = COMPAT_TEXTURE(Texture, _c0069);
267    _c0071 = TEX0.xy + vec2(VARps.x, 0.00000000E+00)*vec2(float(_quad.x), float(_quad.y));
268    _TMP3 = COMPAT_TEXTURE(Texture, _c0071);
269    _c0073 = TEX0.xy + vec2(0.00000000E+00, VARps.y)*vec2(float(_quad.x), float(_quad.y));
270    _TMP4 = COMPAT_TEXTURE(Texture, _c0073);
271    _TMP5 = COMPAT_TEXTURE(Texture, TEX1.xw);
272    _v0077 = vec3(float(_TMP5.x), float(_TMP5.y), float(_TMP5.z));
273    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0077.x), float(_v0077.y), float(_v0077.z)));
274    _r0077.x = float(_TMP43);
275    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0077.x), float(_v0077.y), float(_v0077.z)));
276    _r0077.y = float(_TMP43);
277    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0077.x), float(_v0077.y), float(_v0077.z)));
278    _r0077.z = float(_TMP43);
279    _w1 = vec3(float(_r0077.x), float(_r0077.y), float(_r0077.z));
280    _TMP7 = COMPAT_TEXTURE(Texture, TEX1.yw);
281    _v0087 = vec3(float(_TMP7.x), float(_TMP7.y), float(_TMP7.z));
282    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0087.x), float(_v0087.y), float(_v0087.z)));
283    _r0087.x = float(_TMP43);
284    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0087.x), float(_v0087.y), float(_v0087.z)));
285    _r0087.y = float(_TMP43);
286    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0087.x), float(_v0087.y), float(_v0087.z)));
287    _r0087.z = float(_TMP43);
288    _w2 = vec3(float(_r0087.x), float(_r0087.y), float(_r0087.z));
289    _TMP9 = COMPAT_TEXTURE(Texture, TEX1.zw);
290    _v0097 = vec3(float(_TMP9.x), float(_TMP9.y), float(_TMP9.z));
291    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0097.x), float(_v0097.y), float(_v0097.z)));
292    _r0097.x = float(_TMP43);
293    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0097.x), float(_v0097.y), float(_v0097.z)));
294    _r0097.y = float(_TMP43);
295    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0097.x), float(_v0097.y), float(_v0097.z)));
296    _r0097.z = float(_TMP43);
297    _w3 = vec3(float(_r0097.x), float(_r0097.y), float(_r0097.z));
298    _TMP11 = COMPAT_TEXTURE(Texture, TEX2.xw);
299    _v0107 = vec3(float(_TMP11.x), float(_TMP11.y), float(_TMP11.z));
300    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0107.x), float(_v0107.y), float(_v0107.z)));
301    _r0107.x = float(_TMP43);
302    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0107.x), float(_v0107.y), float(_v0107.z)));
303    _r0107.y = float(_TMP43);
304    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0107.x), float(_v0107.y), float(_v0107.z)));
305    _r0107.z = float(_TMP43);
306    _w4 = vec3(float(_r0107.x), float(_r0107.y), float(_r0107.z));
307    _v0115 = vec3(float(_TMP1.x), float(_TMP1.y), float(_TMP1.z));
308    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0115.x), float(_v0115.y), float(_v0115.z)));
309    _r0115.x = float(_TMP43);
310    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0115.x), float(_v0115.y), float(_v0115.z)));
311    _r0115.y = float(_TMP43);
312    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0115.x), float(_v0115.y), float(_v0115.z)));
313    _r0115.z = float(_TMP43);
314    _w5 = vec3(float(_r0115.x), float(_r0115.y), float(_r0115.z));
315    _TMP14 = COMPAT_TEXTURE(Texture, TEX2.zw);
316    _v0125 = vec3(float(_TMP14.x), float(_TMP14.y), float(_TMP14.z));
317    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0125.x), float(_v0125.y), float(_v0125.z)));
318    _r0125.x = float(_TMP43);
319    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0125.x), float(_v0125.y), float(_v0125.z)));
320    _r0125.y = float(_TMP43);
321    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0125.x), float(_v0125.y), float(_v0125.z)));
322    _r0125.z = float(_TMP43);
323    _w6 = vec3(float(_r0125.x), float(_r0125.y), float(_r0125.z));
324    _TMP16 = COMPAT_TEXTURE(Texture, TEX3.xw);
325    _v0135 = vec3(float(_TMP16.x), float(_TMP16.y), float(_TMP16.z));
326    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0135.x), float(_v0135.y), float(_v0135.z)));
327    _r0135.x = float(_TMP43);
328    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0135.x), float(_v0135.y), float(_v0135.z)));
329    _r0135.y = float(_TMP43);
330    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0135.x), float(_v0135.y), float(_v0135.z)));
331    _r0135.z = float(_TMP43);
332    _w7 = vec3(float(_r0135.x), float(_r0135.y), float(_r0135.z));
333    _TMP18 = COMPAT_TEXTURE(Texture, TEX3.yw);
334    _v0145 = vec3(float(_TMP18.x), float(_TMP18.y), float(_TMP18.z));
335    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0145.x), float(_v0145.y), float(_v0145.z)));
336    _r0145.x = float(_TMP43);
337    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0145.x), float(_v0145.y), float(_v0145.z)));
338    _r0145.y = float(_TMP43);
339    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0145.x), float(_v0145.y), float(_v0145.z)));
340    _r0145.z = float(_TMP43);
341    _w8 = vec3(float(_r0145.x), float(_r0145.y), float(_r0145.z));
342    _TMP20 = COMPAT_TEXTURE(Texture, TEX3.zw);
343    _v0155 = vec3(float(_TMP20.x), float(_TMP20.y), float(_TMP20.z));
344    _TMP43 = dot(vec3( 2.99072266E-01, 5.86914062E-01, 1.14013672E-01), vec3(float(_v0155.x), float(_v0155.y), float(_v0155.z)));
345    _r0155.x = float(_TMP43);
346    _TMP43 = dot(vec3( -1.68945312E-01, -3.31054688E-01, 5.00000000E-01), vec3(float(_v0155.x), float(_v0155.y), float(_v0155.z)));
347    _r0155.y = float(_TMP43);
348    _TMP43 = dot(vec3( 5.00000000E-01, -4.18945312E-01, -8.09936523E-02), vec3(float(_v0155.x), float(_v0155.y), float(_v0155.z)));
349    _r0155.z = float(_TMP43);
350    _w9 = vec3(float(_r0155.x), float(_r0155.y), float(_r0155.z));
351    _a0165 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w1 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
352    _TMP42 = abs(_a0165);
353    _res0163 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
354    _TMP22 = _res0163.x || _res0163.y || _res0163.z;
355    _a0169 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w2 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
356    _TMP42 = abs(_a0169);
357    _res0167 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
358    _TMP23 = _res0167.x || _res0167.y || _res0167.z;
359    _a0173 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w3 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
360    _TMP42 = abs(_a0173);
361    _res0171 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
362    _TMP24 = _res0171.x || _res0171.y || _res0171.z;
363    _a0177 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w4 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
364    _TMP42 = abs(_a0177);
365    _res0175 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
366    _TMP25 = _res0175.x || _res0175.y || _res0175.z;
367    _a0181 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w6 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
368    _TMP42 = abs(_a0181);
369    _res0179 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
370    _TMP26 = _res0179.x || _res0179.y || _res0179.z;
371    _a0185 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w7 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
372    _TMP42 = abs(_a0185);
373    _res0183 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
374    _TMP27 = _res0183.x || _res0183.y || _res0183.z;
375    _a0189 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w8 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
376    _TMP42 = abs(_a0189);
377    _res0187 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
378    _TMP28 = _res0187.x || _res0187.y || _res0187.z;
379    _a0193 = (_w5 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w9 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
380    _TMP42 = abs(_a0193);
381    _res0191 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
382    _TMP29 = _res0191.x || _res0191.y || _res0191.z;
383    _TMP50[0] = bvec3(_TMP22, _TMP23, _TMP24);
384    _TMP50[1] = bvec3(_TMP25, false, _TMP26);
385    _TMP50[2] = bvec3(_TMP27, _TMP28, _TMP29);
386    _a0197 = (_w4 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w2 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
387    _TMP42 = abs(_a0197);
388    _res0195 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
389    _TMP30 = _res0195.x || _res0195.y || _res0195.z;
390    _a0201 = (_w2 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w6 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
391    _TMP42 = abs(_a0201);
392    _res0199 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
393    _TMP31 = _res0199.x || _res0199.y || _res0199.z;
394    _a0205 = (_w8 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w4 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
395    _TMP42 = abs(_a0205);
396    _res0203 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
397    _TMP32 = _res0203.x || _res0203.y || _res0203.z;
398    _a0209 = (_w6 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01)) - (_w8 + vec3( 0.00000000E+00, 5.00000000E-01, 5.00000000E-01));
399    _TMP42 = abs(_a0209);
400    _res0207 = bvec3(_TMP42.x > 1.88232422E-01, _TMP42.y > 2.74505615E-02, _TMP42.z > 2.35290527E-02);
401    _TMP33 = _res0207.x || _res0207.y || _res0207.z;
402    _cross = bvec4(_TMP30, _TMP31, _TMP32, _TMP33);
403    _a0211 = vec3(float(_TMP50[0].x), float(_TMP50[0].y), float(_TMP50[0].z));
404    _TMP43 = dot(vec3(float(_a0211.x), float(_a0211.y), float(_a0211.z)), vec3( 1.00000000E+00, 2.00000000E+00, 4.00000000E+00));
405    _TMP34 = float(_TMP43);
406    _a0213 = vec3(float(_TMP50[1].x), float(_TMP50[1].y), float(_TMP50[1].z));
407    _TMP43 = dot(vec3(float(_a0213.x), float(_a0213.y), float(_a0213.z)), vec3( 8.00000000E+00, 0.00000000E+00, 1.60000000E+01));
408    _TMP35 = float(_TMP43);
409    _a0215 = vec3(float(_TMP50[2].x), float(_TMP50[2].y), float(_TMP50[2].z));
410    _TMP43 = dot(vec3(float(_a0215.x), float(_a0215.y), float(_a0215.z)), vec3( 3.20000000E+01, 6.40000000E+01, 1.28000000E+02));
411    _TMP36 = float(_TMP43);
412    _index.x = _TMP34 + _TMP35 + _TMP36;
413    _a0217 = vec4(float(_cross.x), float(_cross.y), float(_cross.z), float(_cross.w));
414    _TMP44 = dot(vec4(float(_a0217.x), float(_a0217.y), float(_a0217.z), float(_a0217.w)), vec4( 1.00000000E+00, 2.00000000E+00, 4.00000000E+00, 8.00000000E+00));
415    _TMP37 = float(_TMP44);
416    _x0219 = _fp*4.00000000E+00;
417    _TMP38 = floor(_x0219);
418    _TMP39 = dot(_TMP38, vec2( 1.00000000E+00, 4.00000000E+00));
419    _index.y = float((float((_TMP37*1.60000000E+01)) + _TMP39));
420    _c0223 = vec2(float((_index*vec2( 3.90625000E-03, 3.90625000E-03) + vec2( 1.95312500E-03, 1.95312500E-03)).x), float((_index*vec2( 3.90625000E-03, 3.90625000E-03) + vec2( 1.95312500E-03, 1.95312500E-03)).y));
421    _TMP40 = COMPAT_TEXTURE(LUT, _c0223);
422    _weights = vec4(float(_TMP40.x), float(_TMP40.y), float(_TMP40.z), float(_TMP40.w));
423    _TMP44 = dot(vec4(float(_weights.x), float(_weights.y), float(_weights.z), float(_weights.w)), vec4( 1.00000000E+00, 1.00000000E+00, 1.00000000E+00, 1.00000000E+00));
424    _sum = float(_TMP44);
425    _v0229 = vec4(float((_weights/_sum).x), float((_weights/_sum).y), float((_weights/_sum).z), float((_weights/_sum).w));
426    _r0229 = _v0229.x*_TMP1.xyz;
427    _r0229 = _r0229 + _v0229.y*_TMP2.xyz;
428    _r0229 = _r0229 + _v0229.z*_TMP3.xyz;
429    _r0229 = _r0229 + _v0229.w*_TMP4.xyz;
430    _ret_0 = vec4(_r0229.x, _r0229.y, _r0229.z, 1.00000000E+00);
431    FragColor = _ret_0;
432    return;
433}
434#endif
435