Add Mesh Surface Sampled Particles
Add the canonical Phoenix particle component to the user's existing scene without copying the Threenix demo.
Workflow
- Read the target repository's instructions and inspect its package manager, dependencies, Canvas import, renderer, scene composition, controls, and asset handling.
- Confirm the scene uses
@react-three/fiber/webgpu, providesuseLocalNodes, and can load GLB assets throughuseGLTF. If it does not, stop before editing; migrating WebGL to WebGPU is out of scope. - Call the
get_component_referencetool from thethreenixMCP server with{ "slug": "mesh-surface-sampled-particles" }. 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; the component expects its sampler andphoenix_compressed.glbat their returned relative locations. - Follow the returned
integrationNotesand renderMeshSurfaceSampledParticlesinside the existing WebGPU Canvas. Preserve the target's Canvas, camera, renderer, scene, controls, and postprocessing; do not copy the demo, Leva controls, or background. Keep the returned model and itsPheonix_Baked_Bakednode contract; apply scene-specific transforms only at the integration site. - 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, GLB, or version incompatibility.