mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
16 lines
477 B
Text
16 lines
477 B
Text
|
#extension GL_ARB_shader_texture_lod : require
|
||
|
vec4 xll_tex2Dlod(sampler2D s, vec4 coord) {
|
||
|
return texture2DLod( s, coord.xy, coord.w);
|
||
|
}
|
||
|
uniform sampler2D tex;
|
||
|
mediump vec4 xlat_main( in highp vec4 uv );
|
||
|
mediump vec4 xlat_main( in highp vec4 uv ) {
|
||
|
return xll_tex2Dlod( tex, vec4( uv.xy , 0.0, 0.0));
|
||
|
}
|
||
|
varying highp vec4 xlv_TEXCOORD0;
|
||
|
void main() {
|
||
|
mediump vec4 xl_retval;
|
||
|
xl_retval = xlat_main( vec4(xlv_TEXCOORD0));
|
||
|
gl_FragData[0] = vec4( xl_retval);
|
||
|
}
|