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

10 lines
240 B
Text
Raw Normal View History

2014-02-11 02:06:13 -05:00
#version 300 es
precision mediump float;
uniform sampler2D tex;
uniform samplerCube cub;
in vec3 uv;
out vec4 _fragColor;
void main() {
_fragColor = textureGrad(tex,uv.xy,dFdx(uv.xy),dFdy(uv.xy)) + textureGrad(cub,uv,dFdx(uv),dFdy(uv));
}