10 lines
182 B
GLSL
10 lines
182 B
GLSL
#version 430 core
|
|
in vec2 vTex;
|
|
in flat uint vLayer;
|
|
out vec4 fragColor;
|
|
|
|
uniform sampler2DArray uAtlas;
|
|
|
|
void main() {
|
|
fragColor = texture(uAtlas, vec3(vTex, float(vLayer)));
|
|
}
|