@adatechnology/game-vegetation-three 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/index.global.js +1725 -198
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -31,3 +31,10 @@ The module draws no particles and asks for no effects: leaves, sap and fire come
|
|
|
31
31
|
## Tests
|
|
32
32
|
|
|
33
33
|
`tests/team-golden-module.test.ts` runs the module of the Viveiro artifact against the kit's room and compares it with this one: the 18 items (names in both languages, meshes, specs, clips) and the 13 scenarios (the same checks and the same count of every log line). `tests/team-golden-nursery.test.ts` cuts `buildLotVeg` from the page and compares the placements, triangles, plants, colliders and species for 8 seeds. `examples/vegetation-test-area` loads the module, and so does `examples/interactables-test-area`.
|
|
34
|
+
|
|
35
|
+
## Geometry
|
|
36
|
+
|
|
37
|
+
The nursery's scenery (ground, street, walls, house and roof), its colliders and walker, and the colliders layer are made through
|
|
38
|
+
`shapeGeometries(THREE)` of `@adatechnology/game-shapes-three`: the same bytes as three's constructors
|
|
39
|
+
(`tests/exact-golden.test.ts`), cached by parameters. The plants themselves are `@adatechnology/game-vegetation`'s own buffers (`PlantMesh`,
|
|
40
|
+
with the per-vertex `sway` of the wind), drawn by its adapter.
|