blob: 5eedd128054b8b6cd1b09ee56f6d5d382a899b3d [file] [log] [blame]
#version 100
precision mediump float;
precision mediump sampler2D;
uniform highp vec4 uscale0_1_Stage2_c1_c0_c0_c0_c1_c0;
uniform highp vec4 uscale2_3_Stage2_c1_c0_c0_c0_c1_c0;
uniform highp vec4 uscale4_5_Stage2_c1_c0_c0_c0_c1_c0;
uniform highp vec4 ubias0_1_Stage2_c1_c0_c0_c0_c1_c0;
uniform highp vec4 ubias2_3_Stage2_c1_c0_c0_c0_c1_c0;
uniform highp vec4 ubias4_5_Stage2_c1_c0_c0_c0_c1_c0;
uniform mediump vec4 uthresholds1_7_Stage2_c1_c0_c0_c0_c1_c0;
uniform mediump vec4 uthresholds9_13_Stage2_c1_c0_c0_c0_c1_c0;
uniform sampler2D uTextureSampler_0_Stage1;
varying highp vec2 vTransformedCoords_0_Stage0;
varying highp vec2 vTransformedCoords_1_Stage0;
varying mediump vec4 vcolor_Stage0;
mediump vec4 stage_Stage1_c0_c0(mediump vec4 _input) {
mediump vec4 _sample1992;
_sample1992 = _input * texture2D(uTextureSampler_0_Stage1, vTransformedCoords_0_Stage0);
return _sample1992;
}
mediump vec4 stage_Stage2_c1_c0_c0_c0_c0_c0(mediump vec4 _input) {
mediump vec4 _sample453_c1_c0_c0_c0;
mediump float t = vTransformedCoords_1_Stage0.x + 9.999999747378752e-06;
_sample453_c1_c0_c0_c0 = vec4(t, 1.0, 0.0, 0.0);
return _sample453_c1_c0_c0_c0;
}
mediump vec4 stage_Stage2_c1_c0_c0_c0_c1_c0(mediump vec4 _input) {
mediump vec4 _sample1464_c1_c0_c0_c0;
mediump float t = _input.x;
highp vec4 scale, bias;
{
if (t < uthresholds1_7_Stage2_c1_c0_c0_c0_c1_c0.y) {
if (t < uthresholds1_7_Stage2_c1_c0_c0_c0_c1_c0.x) {
scale = uscale0_1_Stage2_c1_c0_c0_c0_c1_c0;
bias = ubias0_1_Stage2_c1_c0_c0_c0_c1_c0;
} else {
scale = uscale2_3_Stage2_c1_c0_c0_c0_c1_c0;
bias = ubias2_3_Stage2_c1_c0_c0_c0_c1_c0;
}
} else {
{
scale = uscale4_5_Stage2_c1_c0_c0_c0_c1_c0;
bias = ubias4_5_Stage2_c1_c0_c0_c0_c1_c0;
}
}
}
_sample1464_c1_c0_c0_c0 = t * scale + bias;
return _sample1464_c1_c0_c0_c0;
}
mediump vec4 stage_Stage2_c1_c0_c0_c0(mediump vec4 _input) {
mediump vec4 child_c1_c0;
mediump vec4 _sample453_c1_c0_c0_c0;
_sample453_c1_c0_c0_c0 = stage_Stage2_c1_c0_c0_c0_c0_c0(vec4(1.0));
mediump vec4 t = _sample453_c1_c0_c0_c0;
{
{
t.x = fract(t.x);
}
mediump vec4 _sample1464_c1_c0_c0_c0;
_sample1464_c1_c0_c0_c0 = stage_Stage2_c1_c0_c0_c0_c1_c0(t);
child_c1_c0 = _sample1464_c1_c0_c0_c0;
}
{
child_c1_c0.xyz *= child_c1_c0.w;
}
return child_c1_c0;
}
mediump vec4 stage_Stage2_c1_c0(mediump vec4 _input) {
mediump vec4 child;
mediump vec4 child_c1_c0;
child_c1_c0 = stage_Stage2_c1_c0_c0_c0(vec4(1.0));
child = child_c1_c0 * _input.w;
return child;
}
void main() {
mediump vec4 output_Stage1;
{
mediump vec4 _sample1992;
_sample1992 = stage_Stage1_c0_c0(vec4(1.0, 1.0, 1.0, 1.0));
output_Stage1 = _sample1992;
}
mediump vec4 output_Stage2;
{
mediump vec4 child;
child = stage_Stage2_c1_c0(vec4(1.0));
output_Stage2 = vec4(child.w);
}
{
gl_FragColor = output_Stage1 * output_Stage2;
}
}