fix structure foundations
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-28 13:04:29 -04:00
parent ae859942f3
commit 091653756a
2 changed files with 6 additions and 1 deletions

View File

@ -2018,6 +2018,7 @@ Server entities without collidables deactivate gravity trees
Fix texture map for lod human model
Properly show loading state when waiting on character list
Fix standard uniform buffer interaction with actor panel
Fix foundation generation for structures in chunkgen

View File

@ -298,7 +298,11 @@ public class ProceduralChunkGenerator implements ChunkGenerator {
double vertDist = aabb.minY - realY;
if(vertDist > 0 && vertDist < VIRTUAL_STRUCTURE_FOUNDATION_WIDTH){
voxel.type = 1;
voxel.weight = 1;
voxel.weight = 0.95f; //not setting it to 1 to combat z-fighting being caused by the terrain mesh perfectly overlapping the structure mesh
rVal = true;
} else if(vertDist < 0){
voxel.type = 0;
voxel.weight = -1;
rVal = true;
}
}