Effect tool

Make an effect: particles, light and sound on one clock. Start from a preset (a volcano at any activity, a geyser, a splash, an explosion, a fireball, sparks), change any layer and see it at once, then save the recipe for <tosi-b3d-effect> to play in a game.

import { effectTool } from 'tosijs-3d/effect-tool'

preview.closest('tosi-example')?.style.setProperty('--tosi-example-height', '600px')
preview.append(effectTool())

Using it

Tap the scene once so the browser lets it make sound.

The element carries .effect: recipe (a copy; set one to play it) and player, for a page or an editor driving the tool.