mirror of
https://github.com/Relintai/godot_voxel.git
synced 2025-03-11 21:53:24 +01:00
Reduce amount of marching squares generated as skirts
This commit is contained in:
parent
cf7ece7a58
commit
81eeb48ac6
@ -1249,7 +1249,7 @@ static const int g_corner_map_bottom[4] = { 3, 2, 1, 0 };
|
||||
|
||||
void add_marching_squares_skirts(const Vector3 *corners, const HermiteValue *values, MeshBuilder &mesh_builder, Vector3 min_pos, Vector3 max_pos) {
|
||||
|
||||
float max_distance = 0.5f; // Max distance to the isosurface
|
||||
float max_distance = 0.1f; // Max distance to the isosurface
|
||||
|
||||
if (corners[0].z == min_pos.z) {
|
||||
polygonize_cell_marching_squares(corners, values, max_distance, mesh_builder, MarchingSquares::g_corner_map_back);
|
||||
|
Loading…
Reference in New Issue
Block a user