acdream/src/AcDream.App/Rendering/Shaders/terrain.frag
Erik 560100e5b6 feat(app): render 3x3 neighbor landblocks with texture atlas
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 20:23:21 +02:00

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)));
}