feat: add shader pipeline and chunk GLSL shaders

This commit is contained in:
2026-05-28 12:08:58 +02:00
parent d7ecf019cb
commit 50bb77cb2d
3 changed files with 96 additions and 0 deletions

13
Assets/shaders/chunk.frag Normal file
View File

@@ -0,0 +1,13 @@
#version 330 core
in vec2 vUv;
in float vShade;
out vec4 FragColor;
uniform sampler2D atlas;
void main()
{
vec4 texel = texture(atlas, vUv);
FragColor = vec4(texel.rgb * vShade, 1.0);
}