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

25 lines
603 B
Text
Raw Normal View History

2014-02-11 02:06:13 -05:00
#extension GL_EXT_shader_texture_lod : enable
#extension GL_OES_standard_derivatives : enable
uniform sampler2D tex;
uniform samplerCube cub;
varying vec3 uv;
void main ()
{
vec2 tmpvar_1;
tmpvar_1 = dFdx (uv.xy);
vec2 tmpvar_2;
tmpvar_2 = dFdy (uv.xy);
lowp vec4 tmpvar_3;
tmpvar_3 = texture2DGradEXT (tex, uv.xy, tmpvar_1, tmpvar_2);
vec3 tmpvar_4;
tmpvar_4 = dFdx (uv);
vec3 tmpvar_5;
tmpvar_5 = dFdy (uv);
lowp vec4 tmpvar_6;
tmpvar_6 = textureCubeGradEXT (cub, uv, tmpvar_4, tmpvar_5);
lowp vec4 tmpvar_7;
tmpvar_7 = (tmpvar_3 + tmpvar_6);
gl_FragColor = tmpvar_7;
}