player added

This commit is contained in:
maxwes08
2025-09-30 10:58:12 +02:00
parent 38dccf0a84
commit 11f76ca429
11 changed files with 259 additions and 48 deletions

View File

@@ -20,6 +20,7 @@ uniform int chunkY;
out vec2 fragUV;
out float lighting;
out vec3 fragPos;
const float lightMult[6] = float[6](0.6, 0.6, 1.0, 0.5, 0.8, 0.8);
@@ -111,5 +112,6 @@ void main()
fragUV = uv;
lighting = lightMult[facing];
fragPos = vec3(worldPos.x, worldPos.y, worldPos.z);
gl_Position = projection * view * worldPos;
}