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

23 lines
606 B
Plaintext
Raw Normal View History

2012-04-04 07:30:07 +04:00
uniform sampler2D tex_def;
2014-02-11 11:06:13 +04:00
uniform sampler2D tex_lowp;
uniform highp sampler2D tex_highp;
varying lowp vec2 var_lowp;
varying mediump vec2 var_mediump;
2012-04-04 07:30:07 +04:00
void main ()
{
2012-10-08 07:41:18 +04:00
lowp vec4 c3_1;
highp vec4 tmpvar_2;
tmpvar_2 = texture2D (tex_highp, var_mediump);
highp vec4 tmpvar_3;
tmpvar_3 = (tmpvar_2 * 2.0);
c3_1 = tmpvar_3;
lowp vec4 tmpvar_4;
2014-02-11 11:06:13 +04:00
tmpvar_4 = (((
((texture2D (tex_def, var_lowp) * 2.0) + (texture2D (tex_def, var_mediump) * 2.0))
+ c3_1) + (texture2D (tex_lowp, var_mediump) * 2.0)) + abs(var_lowp.xxxx));
2012-10-08 07:41:18 +04:00
gl_FragColor = tmpvar_4;
2012-04-04 07:30:07 +04:00
}
2014-02-11 11:06:13 +04:00
// inputs: 2, stats: 9 alu 4 tex 0 flow