summaryrefslogtreecommitdiffstats
path: root/tests/playground/texture_sep_arr.frag
blob: 32b9d734ce8bec3e89f207c7be78c6f9da4a3a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 440

layout(location = 0) in vec2 v_texcoord;

layout(location = 0) out vec4 fragColor;

layout(binding = 1) uniform texture2D sepTex[2];
layout(binding = 2) uniform sampler sepSampler;

void main()
{
    fragColor = texture(sampler2D(sepTex[0], sepSampler), v_texcoord);
    fragColor *= texture(sampler2D(sepTex[1], sepSampler), v_texcoord);
}