Threenix Fireworks
Implement the GPU compute fireworks component in the user's existing scene; do not replace it with the Threenix demo.
Workflow
- Read the target repository's local instructions and inspect its dependencies, Canvas import, renderer, camera, controls, postprocessing, and scene composition before editing.
- Confirm the scene uses
@react-three/fiber/webgpuand provides the WebGPU hooks required byFireworks.tsx, includinguseLocalNodesanduseUniforms. If it does not, stop before editing and explain the incompatibility. Migrating WebGL to WebGPU is out of scope. - Call the
get_component_referencetool from thethreenixMCP server with{ "slug": "fireworks" }. If the tool or authentication is unavailable, stop and explain the problem; do not reconstruct the reference from local or bundled sources. - Choose one destination root near the target scene. Write only the returned
files[]beneath it at each relativepath: writeutf-8content verbatim and decodebase64content. Never flatten or rename returned paths;fireworks-sprites.webpmust remain besideFireworks.tsxfor its relative asset URL. - Follow the returned
integrationNotesand renderFireworksParticlesinside the existing WebGPU Canvas. Preserve the target's camera, controls, postprocessing, renderer, and scene; do not copy or replace its Canvas, demo, Leva controls, or background. - Install only returned dependency names absent from the target manifest, pinned to the returned versions and using the existing package manager. Do not replace existing version ranges or add demo-only dependencies.
- Run the narrowest type-check or build covering the edited scene and report any unresolved WebGPU API or version incompatibility.