blob: 525fe12664c7c6ec3da560ed52ad301db9357a01 [file] [log] [blame]
#version 100
precision mediump float;
precision mediump sampler2D;
uniform sampler2D uTextureSampler_0_Stage1;
varying highp vec2 vTransformedCoords_0_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;
}
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 float luma = clamp(dot(vec3(0.2125999927520752, 0.7152000069618225, 0.0722000002861023), output_Stage1.xyz), 0.0, 1.0);
output_Stage2 = vec4(0.0, 0.0, 0.0, luma);
}
{
gl_FragColor = output_Stage2;
}
}