2016-04-19 09:13:47 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
precision highp int;
|
|
|
|
|
2016-09-11 11:23:38 +00:00
|
|
|
uniform mediump sampler2D SPIRV_Cross_CombineduTextureuSampler;
|
|
|
|
uniform mediump sampler2DArray SPIRV_Cross_CombineduTextureArrayuSampler;
|
|
|
|
uniform mediump samplerCube SPIRV_Cross_CombineduTextureCubeuSampler;
|
|
|
|
uniform mediump sampler3D SPIRV_Cross_CombineduTexture3DuSampler;
|
2016-04-19 09:13:47 +00:00
|
|
|
|
|
|
|
layout(location = 0) in vec2 vTex;
|
|
|
|
layout(location = 1) in vec3 vTex3;
|
2016-04-19 09:27:17 +00:00
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
2016-09-11 11:23:38 +00:00
|
|
|
vec4 sample_func(vec2 uv, mediump sampler2D SPIRV_Cross_CombineduTexturesamp)
|
2016-04-19 09:27:17 +00:00
|
|
|
{
|
2016-09-11 11:23:38 +00:00
|
|
|
return texture(SPIRV_Cross_CombineduTexturesamp, uv);
|
2016-04-19 09:27:17 +00:00
|
|
|
}
|
|
|
|
|
2016-09-11 11:23:38 +00:00
|
|
|
vec4 sample_func_dual(vec2 uv, mediump sampler2D SPIRV_Cross_Combinedtexsamp)
|
2016-04-19 09:27:17 +00:00
|
|
|
{
|
2016-09-11 11:23:38 +00:00
|
|
|
return texture(SPIRV_Cross_Combinedtexsamp, uv);
|
2016-04-19 09:27:17 +00:00
|
|
|
}
|
2016-04-19 09:13:47 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2016-12-05 09:22:54 +00:00
|
|
|
vec2 off = vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler, 0));
|
|
|
|
vec2 off2 = vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler, 1));
|
|
|
|
highp vec2 param = (vTex + off) + off2;
|
2016-09-11 11:23:38 +00:00
|
|
|
vec4 c0 = sample_func(param, SPIRV_Cross_CombineduTextureuSampler);
|
2016-12-05 09:22:54 +00:00
|
|
|
highp vec2 param_1 = (vTex + off) + off2;
|
2016-09-11 11:23:38 +00:00
|
|
|
vec4 c1 = sample_func_dual(param_1, SPIRV_Cross_CombineduTextureuSampler);
|
|
|
|
vec4 c2 = texture(SPIRV_Cross_CombineduTextureArrayuSampler, vTex3);
|
|
|
|
vec4 c3 = texture(SPIRV_Cross_CombineduTextureCubeuSampler, vTex3);
|
|
|
|
vec4 c4 = texture(SPIRV_Cross_CombineduTexture3DuSampler, vTex3);
|
2016-12-05 09:22:54 +00:00
|
|
|
FragColor = (((c0 + c1) + c2) + c3) + c4;
|
2016-04-19 09:13:47 +00:00
|
|
|
}
|
|
|
|
|