mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
19 lines
471 B
Text
19 lines
471 B
Text
#version 300 es
|
|
precision mediump float;
|
|
|
|
vec4 xll_tex2Dlod(sampler2D s, vec4 coord) {
|
|
return textureLod (s, coord.xy, coord.w);
|
|
}
|
|
uniform sampler2D tex;
|
|
mediump vec4 xlat_main (in highp vec4 uv) {
|
|
return xll_tex2Dlod( tex, vec4( uv.xy , 0.0, 0.0));
|
|
}
|
|
in highp vec4 uvHi;
|
|
in mediump vec4 uvMed;
|
|
out vec4 _fragColor;
|
|
void main() {
|
|
mediump vec4 r;
|
|
r = xlat_main(uvHi);
|
|
r += textureLod (tex, uvMed.xy, uvMed.z); // mediump arguments
|
|
_fragColor = r;
|
|
}
|