optimized

This commit is contained in:
maxwes08
2025-12-15 10:25:50 +01:00
parent f532eddfbb
commit 01d86cd2aa
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ void main()
float fogFactor = (fogEndSq - distSq) * fogRangeInv; float fogFactor = (fogEndSq - distSq) * fogRangeInv;
fogFactor = clamp(fogFactor, 0.0, 1.0); fogFactor = clamp(fogFactor, 0.0, 1.0);
fogFactor = 1;
// Texture and lighting // Texture and lighting
vec4 texColor = texture(uTexture, fragUV); vec4 texColor = texture(uTexture, fragUV);

View File

@@ -9,7 +9,7 @@ namespace Voxel
private Dictionary<(int, int), Chunk> _chunks; private Dictionary<(int, int), Chunk> _chunks;
private (int x, int z) _lastCenter = (0, 0); private (int x, int z) _lastCenter = (0, 0);
private int _loadDistance = 4; private int _loadDistance = 32;
bool chunkLoadingInitialized = false; bool chunkLoadingInitialized = false;
private static readonly Dictionary<Orientation, (int x, int y)> _neighborOffsets = new() private static readonly Dictionary<Orientation, (int x, int y)> _neighborOffsets = new()