@wardic/three
Effect-typed: this package uses Effect's own types, so it moves to a new Effect major only in a Wardic major (the roadmap).
Wardic for three.js: Motion's animate on a scene's meshes, materials, cameras, lights and uniforms, Batches of its objects and of an InstancedMesh's instances, and the pointer through its raycast. Its Solid hooks, @wardic/three/solid, are in the Solid reference. Each module is @wardic/three/<Module>, and each page is generated from its source's doc comments.
| Module | |
|---|---|
| TestStage | A scene's runtime for tests, with no renderer and no page: WardicThree.make on a stand-in canvas, its frames pumped by frame(), and a pointer that hovers and presses objects through the scene's own input, hit by three's real raycast. |
| ThreeColours | A scene's colours, as Wardic animates them: in linear light, three's working space, each as three channel keys. |
| ThreeInput | A scene's pointer input: the canvas's pointer events, hit-tested by a raycast, as core's InputSource, so a mesh is hovered and pressed as an element is. |
| ThreeInstances | An InstancedMesh's instances as a Batch's members: wardic.batch(instanced) animates each instance's transforms and colour by its index, as one run, where three would update an Object3D and call setMatrixAt for each. |
| ThreeRenderer | The scene writer: Wardic's values written onto three.js objects once a frame, in the frame that computed them. |
| ThreeValues | A three.js Subject's values for Wardic: where each key it animates starts, found where the writer writes it (a scene object's transforms, its own number, its material's, a uniform's, a TSL uniform node's, a vector's axis), and the scene's Positional keys. |
| WardicThree | Wardic for three.js: Motion's animate on a scene's meshes, materials, cameras, lights and uniforms, on frames the Host loop pumps. |