Compare commits
1 Commits
01d86cd2aa
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ffda6f5af |
@@ -15,13 +15,12 @@ void main()
|
||||
float distSq = dot(delta, delta);
|
||||
|
||||
// Precomputed fog parameters
|
||||
const float fogEndSq = 16384.0; // 128^2
|
||||
const float fogEndSq = 65536.0; // 128^2
|
||||
const float fogStartSq = 1024.0; // 32^2
|
||||
const float fogRangeInv = 1.0 / (fogEndSq - fogStartSq);
|
||||
|
||||
float fogFactor = (fogEndSq - distSq) * fogRangeInv;
|
||||
fogFactor = clamp(fogFactor, 0.0, 1.0);
|
||||
fogFactor = 1;
|
||||
|
||||
// Texture and lighting
|
||||
vec4 texColor = texture(uTexture, fragUV);
|
||||
|
||||
2
World.cs
2
World.cs
@@ -9,7 +9,7 @@ namespace Voxel
|
||||
private Dictionary<(int, int), Chunk> _chunks;
|
||||
|
||||
private (int x, int z) _lastCenter = (0, 0);
|
||||
private int _loadDistance = 32;
|
||||
private int _loadDistance = 8;
|
||||
bool chunkLoadingInitialized = false;
|
||||
|
||||
private static readonly Dictionary<Orientation, (int x, int y)> _neighborOffsets = new()
|
||||
|
||||
Reference in New Issue
Block a user