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

8 lines
244 B
Text
Raw Normal View History

2014-02-11 02:06:13 -05:00
#extension GL_ARB_shader_texture_lod : require
uniform sampler2D tex;
uniform samplerCube cub;
varying vec3 uv;
void main() {
gl_FragColor = texture2DGradARB(tex,uv.xy,dFdx(uv.xy),dFdy(uv.xy)) + textureCubeGradARB(cub,uv,dFdx(uv),dFdy(uv));
}