Culling, rendering improvements and optimizations, block removing test.

This commit is contained in:
2025-09-02 22:43:35 +02:00
parent a9cab195b6
commit 00713db79e
16 changed files with 390 additions and 210 deletions

View File

@@ -1,9 +1,13 @@
#version 430 core
out vec4 FragColor;
in vec3 fragColor;
in vec2 fragUV;
in float lighting;
uniform sampler2D uTexture;
void main()
{
FragColor = vec4(fragColor, 1.0);
vec4 texColor = texture(uTexture, fragUV);
FragColor = vec4(texColor.rgb * lighting, texColor.a);
}