fix structure foundations
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
ae859942f3
commit
091653756a
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user