bgfx/3rdparty/glsl-optimizer/tests/fragment/prec-tempssimple-irES.txt

43 lines
1 KiB
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
varying mediump vec2 var_mediump;
varying lowp vec2 var_lowp;
uniform sampler2D tex_highp;
uniform sampler2D tex_lowp;
uniform sampler2D tex_def;
void main ()
{
2012-10-07 23:41:18 -04:00
lowp vec4 a1_1;
lowp vec4 c4_2;
lowp vec4 c3_3;
lowp vec4 c2_4;
lowp vec4 c1_5;
lowp vec4 tmpvar_6;
tmpvar_6 = texture2D (tex_def, var_lowp);
2012-04-03 23:30:07 -04:00
lowp vec4 tmpvar_7;
2012-10-07 23:41:18 -04:00
tmpvar_7 = (tmpvar_6 * 2.0);
c1_5 = tmpvar_7;
2012-04-03 23:30:07 -04:00
lowp vec4 tmpvar_8;
2012-10-07 23:41:18 -04:00
tmpvar_8 = texture2D (tex_def, var_mediump);
2012-04-03 23:30:07 -04:00
lowp vec4 tmpvar_9;
2012-10-07 23:41:18 -04:00
tmpvar_9 = (tmpvar_8 * 2.0);
c2_4 = tmpvar_9;
highp vec4 tmpvar_10;
tmpvar_10 = texture2D (tex_highp, var_mediump);
highp vec4 tmpvar_11;
tmpvar_11 = (tmpvar_10 * 2.0);
c3_3 = tmpvar_11;
lowp vec4 tmpvar_12;
tmpvar_12 = texture2D (tex_lowp, var_mediump);
lowp vec4 tmpvar_13;
tmpvar_13 = (tmpvar_12 * 2.0);
c4_2 = tmpvar_13;
lowp vec4 tmpvar_14;
tmpvar_14 = abs (var_lowp.xxxx);
lowp vec4 tmpvar_15;
tmpvar_15 = tmpvar_14;
a1_1 = tmpvar_15;
lowp vec4 tmpvar_16;
tmpvar_16 = ((((c1_5 + c2_4) + c3_3) + c4_2) + a1_1);
gl_FragColor = tmpvar_16;
2012-04-03 23:30:07 -04:00
}