bgfx/3rdparty/glsl-optimizer/tests/fragment/tex2dgrad-ir.txt
2014-02-10 23:06:13 -08:00

23 lines
540 B
Text

#extension GL_ARB_shader_texture_lod : 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);
vec4 tmpvar_3;
tmpvar_3 = texture2DGradARB (tex, uv.xy, tmpvar_1, tmpvar_2);
vec3 tmpvar_4;
tmpvar_4 = dFdx (uv);
vec3 tmpvar_5;
tmpvar_5 = dFdy (uv);
vec4 tmpvar_6;
tmpvar_6 = textureCubeGradARB (cub, uv, tmpvar_4, tmpvar_5);
vec4 tmpvar_7;
tmpvar_7 = (tmpvar_3 + tmpvar_6);
gl_FragColor = tmpvar_7;
}