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

25 lines
557 B
Text

#version 300 es
precision mediump float;
uniform sampler2D tex;
uniform samplerCube cub;
in vec3 uv;
out lowp vec4 _fragColor;
void main ()
{
vec2 tmpvar_1;
tmpvar_1 = dFdx (uv.xy);
vec2 tmpvar_2;
tmpvar_2 = dFdy (uv.xy);
lowp vec4 tmpvar_3;
tmpvar_3 = textureGrad (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 = textureGrad (cub, uv, tmpvar_4, tmpvar_5);
lowp vec4 tmpvar_7;
tmpvar_7 = (tmpvar_3 + tmpvar_6);
_fragColor = tmpvar_7;
}