Implement texture atlas, details on why it works unclear

This commit is contained in:
jgk
2021-06-14 16:24:10 +02:00
parent f09fe8798e
commit 73bd407c49
16 changed files with 118 additions and 26 deletions
+10
View File
@@ -0,0 +1,10 @@
#version 430 core
in vec3 vTexPos;
out vec4 fColor;
uniform sampler2DArray tilesetSampler;
void main()
{
fColor = texture(tilesetSampler, vTexPos);
}