Skip to content

Commit

Permalink
Tighten instancer removal brush size
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Sep 24, 2024
1 parent 93dade4 commit 6658ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terrain_3d_instancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void Terrain3DInstancer::remove_instances(const Vector3 &p_global_position, cons
}
Ref<Terrain3DMeshAsset> mesh_asset = _terrain->get_assets()->get_mesh_asset(mesh_id);

real_t brush_size = CLAMP(real_t(p_params.get("size", 10.f)), 2.f, 4096.f); // Meters
real_t brush_size = CLAMP(real_t(p_params.get("size", 10.f)), .5f, 4096.f); // Meters
real_t radius = brush_size * .4f; // Ring1's inner radius
real_t strength = CLAMP(real_t(p_params.get("strength", .1f)), .01f, 100.f); // (premul) 1-10k%
real_t fixed_scale = CLAMP(real_t(p_params.get("fixed_scale", 100.f)) * .01f, .01f, 100.f); // 1-10k%
Expand Down

0 comments on commit 6658ab2

Please sign in to comment.