2019-05-09 09:25:45 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(set = 0, binding = 0) uniform sampler2D uSampler[4];
|
|
|
|
layout(set = 0, binding = 1) uniform sampler2D uSamp;
|
|
|
|
layout(location = 0) in vec2 vUV;
|
|
|
|
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
vec4 sample_in_func()
|
|
|
|
{
|
|
|
|
return texture(uSampler[2], vUV);
|
|
|
|
}
|
|
|
|
|
2019-05-09 12:19:40 +00:00
|
|
|
vec4 sample_single_in_func(sampler2D s)
|
|
|
|
{
|
|
|
|
return texture(s, vUV);
|
|
|
|
}
|
|
|
|
|
2019-05-09 09:25:45 +00:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
FragColor = sample_in_func();
|
2019-05-09 12:19:40 +00:00
|
|
|
FragColor += sample_single_in_func(uSampler[1]);
|
2019-05-09 09:25:45 +00:00
|
|
|
}
|