perf: optmize world rendering performance

This commit is contained in:
2026-03-08 11:27:37 +08:00
parent 668fa9a57d
commit f3ff209823
7 changed files with 149 additions and 113 deletions

View File

@@ -1,11 +1,12 @@
#version 430
in vec2 tc;
flat in int tex_layer;
out vec4 color;
layout (binding = 0) uniform sampler2D samp;
layout (binding = 0) uniform sampler2DArray samp;
void main(void) {
color = texture(samp, tc);
color = texture(samp, vec3(tc, tex_layer));
//color = varyingColor;
}