bgfx/3rdparty/glsl-optimizer/tests/fragment/tex2dlod-in.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

16 lines
435 B
Plaintext

#extension GL_ARB_shader_texture_lod : require
vec4 xll_tex2Dlod(sampler2D s, vec4 coord) {
return texture2DLod( s, coord.xy, coord.w);
}
uniform sampler2D tex;
vec4 xlat_main( in vec4 uv );
vec4 xlat_main( in vec4 uv ) {
return xll_tex2Dlod( tex, vec4( uv.xy , 0.0, 0.0));
}
varying vec4 xlv_TEXCOORD0;
void main() {
vec4 xl_retval;
xl_retval = xlat_main( vec4(xlv_TEXCOORD0));
gl_FragData[0] = vec4( xl_retval);
}