Skip to content

Commit

Permalink
include subtract case
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtarsia committed Nov 2, 2024
1 parent e003a67 commit 8c34be4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/terrain_3d_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ void Terrain3DEditor::_operate_map(const Vector3 &p_global_position, const real_
}

// Overlay Spray
case ADD: {
case ADD:
case SUBTRACT: {
real_t spray_strength = CLAMP(strength * 0.05f, 0.004f, .25f);
real_t brush_value = CLAMP(brush_alpha * spray_strength, 0.f, 1.f);
if (enable_texture && brush_alpha * strength * 11.f > 0.1f) {
Expand Down

0 comments on commit 8c34be4

Please sign in to comment.