2014-10-11 15:32:43 -04:00
|
|
|
#version 300 es
|
|
|
|
out lowp vec4 _fragData;
|
|
|
|
uniform sampler2D texlow;
|
|
|
|
uniform mediump sampler2D texmed;
|
|
|
|
uniform highp sampler2D texhigh;
|
|
|
|
uniform samplerCube cubelow;
|
|
|
|
uniform mediump samplerCube cubemed;
|
|
|
|
uniform highp samplerCube cubehigh;
|
|
|
|
|
|
|
|
mediump vec4 xlat_main(in highp vec4 uv) {
|
|
|
|
mediump vec4 c;
|
2015-04-03 02:30:48 -04:00
|
|
|
c = texture(texlow, uv.xy);
|
|
|
|
c += texture(texmed, uv.xy);
|
|
|
|
c += texture(texhigh, uv.xy);
|
|
|
|
c += texture(cubelow, uv.xyz);
|
|
|
|
c += texture(cubemed, uv.xyz);
|
|
|
|
c += texture(cubehigh, uv.xyz);
|
2014-10-11 15:32:43 -04:00
|
|
|
return c;
|
|
|
|
}
|
|
|
|
in highp vec4 varUV;
|
|
|
|
void main() {
|
|
|
|
mediump vec4 r;
|
|
|
|
r = xlat_main(varUV);
|
|
|
|
_fragData = r;
|
|
|
|
}
|