feat(effects): extinguish fire with water/rain and ambient SFX volume

Water and rain erase fire under a tight brush hit radius; add looping fire/rain ambients and an Effects sound slider that also scales one-shot effect SFX.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-23 13:12:41 +08:00
parent a797162f16
commit 2c0e6fbf09
16 changed files with 370 additions and 16 deletions
+8 -1
View File
@@ -102,7 +102,14 @@ function applyEvent(
case 'field.erase':
return bump({
...state,
instances: applyFieldEffectEraserStroke(state.instances, event.points, event.radiusN, makeId),
instances: applyFieldEffectEraserStroke(
state.instances,
event.points,
event.radiusN,
makeId,
event.types,
event.hitMode ?? 'inclusive',
),
});
default: {
// Exhaustiveness