lord help me why glsl

This commit is contained in:
glazenbol
2026-03-23 03:54:26 +01:00
parent ea71e4cbf9
commit 63eaac39bf
4 changed files with 98 additions and 33 deletions
+13
View File
@@ -0,0 +1,13 @@
#version 300 es
precision highp float;
in vec2 vTexCoord;
out vec4 fragColor;
uniform sampler2DArray uTexArray;
uniform int uLayer;
void main() {
float value = texture(uTexArray, vec3(vTexCoord, float(uLayer))).r;
fragColor = vec4(vec3(value), 1.0);
}