incanto 0.17.2 → 0.18.0
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/dist/3d.d.ts +12 -0
- package/dist/3d.js +3 -3
- package/dist/{create-game-PSpDDtTa.js → create-game-BiT-ZLi6.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{physics-3d-DBEnHZqn.js → physics-3d-CfeZOpyK.js} +1 -1
- package/dist/react.js +1 -1
- package/dist/{register-B_PNOtko.js → register-BWGwa7H7.js} +100 -16
- package/dist/test.js +3 -3
- package/editor/assets/{agent8-DuT9-krV.js → agent8-DcEoi33s.js} +1 -1
- package/editor/assets/{index-B756vMqx.js → index-L774mpvF.js} +66 -12
- package/editor/index.html +1 -1
- package/package.json +1 -1
- package/schemas/scene.schema.json +3 -0
- package/skills/incanto-environment.md +12 -0
- package/skills/incanto-node-reference.md +1 -0
- package/templates-app/beacon-isle-3d/package.json +1 -1
- package/templates-app/tps-3d/package.json +1 -1
- package/templates-app/village-quest-3d/package.json +1 -1
package/editor/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Incanto Scene Editor</title>
|
|
7
7
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect width='16' height='16' rx='3' fill='%236ee7dc'/><text x='8' y='12' text-anchor='middle' font-size='11' font-family='monospace' fill='%230e1018'>i</text></svg>" />
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-L774mpvF.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/GameServer-C56iOUgF.js">
|
|
10
10
|
<link rel="stylesheet" crossorigin href="./assets/index-D8QvwvOm.css">
|
|
11
11
|
</head>
|
package/package.json
CHANGED
|
@@ -554,6 +554,18 @@ is radians of `atan(|∇h|)`. Default textures stream from the live agent8 CDN
|
|
|
554
554
|
| `layers` | `[]` | custom splat layers (theme `custom` only) |
|
|
555
555
|
| `textureBase` | agent8 CDN | base URL: `<base>/<name>.png` + `<base>/<name>_normal.png` |
|
|
556
556
|
| `basins` | `[]` | lake/pond bowls — `[{ x, z, radius, depth }]` (centered meters) carved into the surface (smooth, 0-slope rim); `heightAt`, the collider AND draped grass all see them |
|
|
557
|
+
| `wetline` | `null` | WET SAND band — `{ y, band? }` darkens + glosses the splat in a noisy, breathing band just above height `y` (a waterline): the trace of the last swash runup. `band` (default `1.1` m) caps how high above `y` reads wet. `null` = off |
|
|
558
|
+
|
|
559
|
+
**Wet sand at a shoreline.** Set `wetline.y` to the SAME world height as the
|
|
560
|
+
adjoining `Water3D` surface and the beach keeps a damp, glossy apron that
|
|
561
|
+
breathes with the swash — sell any beach/lakeshore in one prop:
|
|
562
|
+
```ts
|
|
563
|
+
// Sea sits at y = 10 → the sand within ~1 m above the waterline reads wet
|
|
564
|
+
"wetline": { "y": 10, "band": 1.0 }
|
|
565
|
+
```
|
|
566
|
+
On a near-flat sandbar remember the band is VERTICAL meters: a 1 m band on a
|
|
567
|
+
1:50 slope is a ~50 m apron — drop `band` to `0.4–0.6` if only a narrow strip
|
|
568
|
+
should read wet.
|
|
557
569
|
|
|
558
570
|
**Carving a lake.** A flat Water3D plane on rolling/dome terrain reads as a wet
|
|
559
571
|
patch, not a lake. Carve a `basins` bowl so water fills a real depression with a
|
|
@@ -764,6 +764,7 @@ Signals: `triggerEnter(other)` · `triggerExit(other)`
|
|
|
764
764
|
| `layers` | `[]` | array |
|
|
765
765
|
| `textureBase` | `"https://agent8-games.verse8.io/assets/3D/default/textures/terrain"` | string |
|
|
766
766
|
| `basins` | `[]` | array |
|
|
767
|
+
| `wetline` | `null` | null |
|
|
767
768
|
|
|
768
769
|
## `TileMap2D` — `incanto/2d`
|
|
769
770
|
|