2013-03-17 14:29:03 -04:00
|
|
|
#extension GL_EXT_shader_texture_lod : enable
|
2012-04-03 23:30:07 -04:00
|
|
|
uniform sampler2D tex;
|
2014-02-11 02:06:13 -05:00
|
|
|
varying highp vec4 xlv_TEXCOORD0;
|
2014-03-29 19:26:01 -04:00
|
|
|
mediump vec4 xll_tex2Dlod (
|
2012-10-07 23:41:18 -04:00
|
|
|
in sampler2D s_1,
|
2014-03-29 19:26:01 -04:00
|
|
|
in mediump vec4 coord_2
|
2012-04-03 23:30:07 -04:00
|
|
|
)
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
lowp vec4 tmpvar_3;
|
2013-03-17 14:29:03 -04:00
|
|
|
tmpvar_3 = texture2DLodEXT (s_1, coord_2.xy, coord_2.w);
|
2012-10-07 23:41:18 -04:00
|
|
|
return tmpvar_3;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
mediump vec4 xlat_main (
|
2012-10-07 23:41:18 -04:00
|
|
|
in highp vec4 uv_4
|
2012-04-03 23:30:07 -04:00
|
|
|
)
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
highp vec4 tmpvar_5;
|
|
|
|
tmpvar_5.zw = vec2(0.0, 0.0);
|
|
|
|
tmpvar_5.xy = uv_4.xy.xy;
|
2014-03-29 19:26:01 -04:00
|
|
|
mediump vec4 tmpvar_6;
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_6 = xll_tex2Dlod (tex, tmpvar_5);
|
|
|
|
return tmpvar_6;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void main ()
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump vec4 xl_retval_7;
|
|
|
|
highp vec4 tmpvar_8;
|
|
|
|
tmpvar_8 = xlv_TEXCOORD0.xyzw;
|
|
|
|
mediump vec4 tmpvar_9;
|
|
|
|
tmpvar_9 = xlat_main (tmpvar_8);
|
|
|
|
mediump vec4 tmpvar_10;
|
|
|
|
tmpvar_10 = tmpvar_9;
|
|
|
|
xl_retval_7 = tmpvar_10;
|
|
|
|
mediump vec4 tmpvar_11;
|
|
|
|
tmpvar_11 = xl_retval_7.xyzw;
|
|
|
|
mediump vec4 tmpvar_12;
|
|
|
|
tmpvar_12 = tmpvar_11;
|
|
|
|
gl_FragData[0] = tmpvar_12;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|