create-threenative 0.2.15 → 0.2.17

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.
Files changed (251) hide show
  1. package/agent-docs/kit-mcp.md +10 -0
  2. package/agent-docs/kit-router.md +14 -0
  3. package/agent-docs/kit-stuck.md +7 -0
  4. package/agent-docs/references/capability-reference.md +958 -30
  5. package/agent-docs/references/conventions.md +271 -0
  6. package/agent-docs/references/kit-action-rpg.md +40 -0
  7. package/agent-docs/references/kit-adventure.md +40 -0
  8. package/agent-docs/references/kit-collectathon.md +38 -0
  9. package/agent-docs/references/kit-kart.md +31 -0
  10. package/agent-docs/references/kit-minimal.md +29 -0
  11. package/agent-docs/references/kit-platformer.md +34 -0
  12. package/agent-docs/references/kit-puzzle.md +22 -0
  13. package/agent-docs/references/kit-racing.md +26 -0
  14. package/agent-docs/references/kit-rain.md +31 -0
  15. package/agent-docs/references/kit-rts.md +34 -0
  16. package/agent-docs/references/kit-runner.md +32 -0
  17. package/agent-docs/references/kit-sailing.md +41 -0
  18. package/agent-docs/references/kit-shooter.md +33 -0
  19. package/agent-docs/references/kit-snow.md +33 -0
  20. package/agent-docs/references/kit-starter.md +55 -0
  21. package/agent-docs/references/kit-tower-defense.md +27 -0
  22. package/agent-docs/references/terrain-authoring.md +2 -1
  23. package/agent-files/.agents/skills/ponytail/SKILL.md +1 -1
  24. package/agent-files/.agents/skills/prd-creator/SKILL.md +3 -2
  25. package/agent-files/.agents/skills/threenative-capabilities/SKILL.md +81 -59
  26. package/agent-files/.claude/hooks/discovery-gate.mjs +125 -0
  27. package/agent-files/.claude/hooks/ponytail-context.mjs +1 -1
  28. package/agent-files/.claude/settings.json +25 -0
  29. package/agent-files/.codex/hooks.json +18 -1
  30. package/dist/index.js +256 -120
  31. package/dist/terrain-kit.d.ts +7 -0
  32. package/dist/terrain-kit.js +82 -0
  33. package/dist/threenative.js +23 -4
  34. package/dist/web-engine-gltf-loader.js +20 -7
  35. package/dist/web-engine-post-effects.js +34 -4
  36. package/dist/web-engine-runtime.js +6119 -3311
  37. package/package.json +13 -8
  38. package/template-assets/patches/three@0.187.0.patch +2004 -407
  39. package/templates/action-rpg/AGENTS.md +99 -84
  40. package/templates/action-rpg/CLAUDE.md +99 -84
  41. package/templates/action-rpg/kit.json +1 -0
  42. package/templates/action-rpg/package.json +7 -7
  43. package/templates/action-rpg/playtests/spells.playtest.json +20 -0
  44. package/templates/action-rpg/src/game.ts +1 -0
  45. package/templates/action-rpg/src/render/atmosphere.ts +5 -16
  46. package/templates/action-rpg/src/render/gpuSky.ts +4 -7
  47. package/templates/action-rpg/src/render/quality.ts +3 -1
  48. package/templates/action-rpg/src/scenes/Play.ts +26 -0
  49. package/templates/action-rpg/src/ui/AbilityBar.tsx +1 -1
  50. package/templates/action-rpg/threenative.config.ts +0 -3
  51. package/templates/adventure/AGENTS.md +87 -44
  52. package/templates/adventure/CLAUDE.md +87 -44
  53. package/templates/adventure/package.json +7 -7
  54. package/templates/collectathon/AGENTS.md +88 -42
  55. package/templates/collectathon/CLAUDE.md +88 -42
  56. package/templates/collectathon/package.json +7 -7
  57. package/templates/kart/AGENTS.md +82 -42
  58. package/templates/kart/CLAUDE.md +82 -42
  59. package/templates/kart/package.json +6 -6
  60. package/templates/minimal/AGENTS.md +100 -84
  61. package/templates/minimal/CLAUDE.md +100 -84
  62. package/templates/minimal/package.json +6 -6
  63. package/templates/minimal/src/render/atmosphere.ts +5 -16
  64. package/templates/minimal/src/render/gpuSky.ts +4 -7
  65. package/templates/platformer/AGENTS.md +90 -46
  66. package/templates/platformer/CLAUDE.md +90 -46
  67. package/templates/platformer/package.json +7 -7
  68. package/templates/puzzle/AGENTS.md +92 -80
  69. package/templates/puzzle/CLAUDE.md +92 -80
  70. package/templates/puzzle/package.json +7 -7
  71. package/templates/racing/AGENTS.md +95 -82
  72. package/templates/racing/CLAUDE.md +95 -82
  73. package/templates/racing/package.json +7 -7
  74. package/templates/racing/src/render/atmosphere.ts +5 -16
  75. package/templates/racing/src/render/gpuSky.ts +4 -7
  76. package/templates/rain/AGENTS.md +92 -84
  77. package/templates/rain/CLAUDE.md +92 -84
  78. package/templates/rain/native-playtests/lightning.playtest.json +85 -10
  79. package/templates/rain/package.json +6 -6
  80. package/templates/rain/playtests/reduced-motion.playtest.json +6 -0
  81. package/templates/rain/src/scenes/Boot.ts +1 -0
  82. package/templates/rain/src/state.ts +7 -0
  83. package/templates/rain/src/ui/GameUi.tsx +7 -1
  84. package/templates/rts/AGENTS.md +96 -85
  85. package/templates/rts/CLAUDE.md +96 -85
  86. package/templates/rts/package.json +6 -6
  87. package/templates/runner/AGENTS.md +92 -80
  88. package/templates/runner/CLAUDE.md +92 -80
  89. package/templates/runner/package.json +7 -7
  90. package/templates/runner/playtests/performance.playtest.json +1 -1
  91. package/templates/runner/src/render/atmosphere.ts +5 -16
  92. package/templates/runner/src/render/gpuSky.ts +4 -7
  93. package/templates/runner/src/render/lighting.ts +53 -11
  94. package/templates/runner/src/scenes/Run.ts +4 -3
  95. package/templates/runner/threenative.config.ts +0 -3
  96. package/templates/sailing/AGENTS.md +91 -79
  97. package/templates/sailing/CLAUDE.md +91 -79
  98. package/templates/sailing/package.json +7 -7
  99. package/templates/sailing/playtests/sails.playtest.json +1 -0
  100. package/templates/sailing/src/render/sky.ts +4 -0
  101. package/templates/sailing/threenative.config.ts +0 -3
  102. package/templates/shooter/AGENTS.md +93 -68
  103. package/templates/shooter/CLAUDE.md +93 -68
  104. package/templates/shooter/package.json +7 -7
  105. package/templates/shooter/src/render/atmosphere.ts +5 -16
  106. package/templates/shooter/src/render/gpuSky.ts +4 -7
  107. package/templates/shooter/src/render/quality.ts +3 -1
  108. package/templates/snow/AGENTS.md +90 -76
  109. package/templates/snow/CLAUDE.md +90 -76
  110. package/templates/snow/package.json +7 -7
  111. package/templates/snow/threenative.config.ts +0 -3
  112. package/templates/starter/AGENTS.md +104 -88
  113. package/templates/starter/CLAUDE.md +104 -88
  114. package/templates/starter/native-playtests/render-chain.playtest.json +24 -24
  115. package/templates/starter/native-playtests/smooth-motion.playtest.json +3 -3
  116. package/templates/starter/package.json +7 -7
  117. package/templates/starter/src/entities/Player.ts +10 -22
  118. package/templates/starter/src/render/atmosphere.ts +5 -16
  119. package/templates/starter/src/render/gpuSky.ts +4 -7
  120. package/templates/starter/src/render/lighting.ts +54 -4
  121. package/templates/starter/src/render/temporalAA.ts +8 -7
  122. package/templates/starter/src/render/temporalAAFrame.ts +30 -9
  123. package/templates/starter/src/render/temporalAAResolve.ts +15 -1
  124. package/templates/starter/src/render/temporalClampRelease.ts +183 -0
  125. package/templates/starter/src/render/temporalHistoryResolve.ts +90 -0
  126. package/templates/starter/src/render/temporalMoire.ts +190 -0
  127. package/templates/starter/src/render/temporalResolve.ts +75 -16
  128. package/templates/starter/src/render/temporalResolveDepth.ts +2 -0
  129. package/templates/starter/src/scenes/Play.ts +41 -29
  130. package/templates/tower-defense/AGENTS.md +92 -81
  131. package/templates/tower-defense/CLAUDE.md +92 -81
  132. package/templates/tower-defense/package.json +7 -7
  133. package/capabilities.json +0 -9197
  134. package/templates/AGENTS.md +0 -21
  135. package/templates/CLAUDE.md +0 -23
  136. package/templates/action-rpg/.codex/config.toml +0 -23
  137. package/templates/action-rpg/.cursor/mcp.json +0 -38
  138. package/templates/action-rpg/.gemini/settings.json +0 -38
  139. package/templates/action-rpg/.mcp.json +0 -38
  140. package/templates/action-rpg/.vscode/mcp.json +0 -43
  141. package/templates/action-rpg/.zed/settings.json +0 -43
  142. package/templates/action-rpg/opencode.json +0 -49
  143. package/templates/adventure/.codex/config.toml +0 -23
  144. package/templates/adventure/.cursor/mcp.json +0 -38
  145. package/templates/adventure/.gemini/settings.json +0 -38
  146. package/templates/adventure/.mcp.json +0 -38
  147. package/templates/adventure/.vscode/mcp.json +0 -43
  148. package/templates/adventure/.zed/settings.json +0 -43
  149. package/templates/adventure/opencode.json +0 -49
  150. package/templates/collectathon/.codex/config.toml +0 -23
  151. package/templates/collectathon/.cursor/mcp.json +0 -38
  152. package/templates/collectathon/.gemini/settings.json +0 -38
  153. package/templates/collectathon/.mcp.json +0 -38
  154. package/templates/collectathon/.vscode/mcp.json +0 -43
  155. package/templates/collectathon/.zed/settings.json +0 -43
  156. package/templates/collectathon/opencode.json +0 -49
  157. package/templates/kart/.codex/config.toml +0 -23
  158. package/templates/kart/.cursor/mcp.json +0 -38
  159. package/templates/kart/.gemini/settings.json +0 -38
  160. package/templates/kart/.mcp.json +0 -38
  161. package/templates/kart/.vscode/mcp.json +0 -43
  162. package/templates/kart/.zed/settings.json +0 -43
  163. package/templates/kart/opencode.json +0 -49
  164. package/templates/minimal/.codex/config.toml +0 -23
  165. package/templates/minimal/.cursor/mcp.json +0 -38
  166. package/templates/minimal/.gemini/settings.json +0 -38
  167. package/templates/minimal/.mcp.json +0 -38
  168. package/templates/minimal/.vscode/mcp.json +0 -43
  169. package/templates/minimal/.zed/settings.json +0 -43
  170. package/templates/minimal/opencode.json +0 -49
  171. package/templates/platformer/.codex/config.toml +0 -23
  172. package/templates/platformer/.cursor/mcp.json +0 -38
  173. package/templates/platformer/.gemini/settings.json +0 -38
  174. package/templates/platformer/.mcp.json +0 -38
  175. package/templates/platformer/.vscode/mcp.json +0 -43
  176. package/templates/platformer/.zed/settings.json +0 -43
  177. package/templates/platformer/opencode.json +0 -49
  178. package/templates/puzzle/.codex/config.toml +0 -23
  179. package/templates/puzzle/.cursor/mcp.json +0 -38
  180. package/templates/puzzle/.gemini/settings.json +0 -38
  181. package/templates/puzzle/.mcp.json +0 -38
  182. package/templates/puzzle/.vscode/mcp.json +0 -43
  183. package/templates/puzzle/.zed/settings.json +0 -43
  184. package/templates/puzzle/opencode.json +0 -49
  185. package/templates/racing/.codex/config.toml +0 -23
  186. package/templates/racing/.cursor/mcp.json +0 -38
  187. package/templates/racing/.gemini/settings.json +0 -38
  188. package/templates/racing/.mcp.json +0 -38
  189. package/templates/racing/.vscode/mcp.json +0 -43
  190. package/templates/racing/.zed/settings.json +0 -43
  191. package/templates/racing/opencode.json +0 -49
  192. package/templates/rain/.codex/config.toml +0 -23
  193. package/templates/rain/.cursor/mcp.json +0 -38
  194. package/templates/rain/.gemini/settings.json +0 -38
  195. package/templates/rain/.mcp.json +0 -38
  196. package/templates/rain/.vscode/mcp.json +0 -43
  197. package/templates/rain/.zed/settings.json +0 -43
  198. package/templates/rain/opencode.json +0 -49
  199. package/templates/rts/.codex/config.toml +0 -23
  200. package/templates/rts/.cursor/mcp.json +0 -38
  201. package/templates/rts/.gemini/settings.json +0 -38
  202. package/templates/rts/.mcp.json +0 -38
  203. package/templates/rts/.vscode/mcp.json +0 -43
  204. package/templates/rts/.zed/settings.json +0 -43
  205. package/templates/rts/opencode.json +0 -49
  206. package/templates/runner/.codex/config.toml +0 -23
  207. package/templates/runner/.cursor/mcp.json +0 -38
  208. package/templates/runner/.gemini/settings.json +0 -38
  209. package/templates/runner/.mcp.json +0 -38
  210. package/templates/runner/.vscode/mcp.json +0 -43
  211. package/templates/runner/.zed/settings.json +0 -43
  212. package/templates/runner/README.md +0 -43
  213. package/templates/runner/opencode.json +0 -49
  214. package/templates/sailing/.codex/config.toml +0 -23
  215. package/templates/sailing/.cursor/mcp.json +0 -38
  216. package/templates/sailing/.gemini/settings.json +0 -38
  217. package/templates/sailing/.mcp.json +0 -38
  218. package/templates/sailing/.vscode/mcp.json +0 -43
  219. package/templates/sailing/.zed/settings.json +0 -43
  220. package/templates/sailing/README.md +0 -28
  221. package/templates/sailing/opencode.json +0 -49
  222. package/templates/shooter/.codex/config.toml +0 -23
  223. package/templates/shooter/.cursor/mcp.json +0 -38
  224. package/templates/shooter/.gemini/settings.json +0 -38
  225. package/templates/shooter/.mcp.json +0 -38
  226. package/templates/shooter/.vscode/mcp.json +0 -43
  227. package/templates/shooter/.zed/settings.json +0 -43
  228. package/templates/shooter/opencode.json +0 -49
  229. package/templates/snow/.codex/config.toml +0 -23
  230. package/templates/snow/.cursor/mcp.json +0 -38
  231. package/templates/snow/.gemini/settings.json +0 -38
  232. package/templates/snow/.mcp.json +0 -38
  233. package/templates/snow/.vscode/mcp.json +0 -43
  234. package/templates/snow/.zed/settings.json +0 -43
  235. package/templates/snow/README.md +0 -26
  236. package/templates/snow/opencode.json +0 -49
  237. package/templates/starter/.codex/config.toml +0 -23
  238. package/templates/starter/.cursor/mcp.json +0 -38
  239. package/templates/starter/.gemini/settings.json +0 -38
  240. package/templates/starter/.mcp.json +0 -38
  241. package/templates/starter/.vscode/mcp.json +0 -43
  242. package/templates/starter/.zed/settings.json +0 -43
  243. package/templates/starter/opencode.json +0 -49
  244. package/templates/tower-defense/.codex/config.toml +0 -23
  245. package/templates/tower-defense/.cursor/mcp.json +0 -38
  246. package/templates/tower-defense/.gemini/settings.json +0 -38
  247. package/templates/tower-defense/.mcp.json +0 -38
  248. package/templates/tower-defense/.vscode/mcp.json +0 -43
  249. package/templates/tower-defense/.zed/settings.json +0 -43
  250. package/templates/tower-defense/README.md +0 -16
  251. package/templates/tower-defense/opencode.json +0 -49
@@ -1,43 +0,0 @@
1
- {
2
- "context_servers": {
3
- "threenative-assets": {
4
- "source": "custom",
5
- "command": "node",
6
- "args": [
7
- "./node_modules/@threenative/core/mcp/assets.mjs"
8
- ],
9
- "env": {
10
- "ASSET_DOWNLOAD_DIR": "./public/assets",
11
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
12
- }
13
- },
14
- "threenative-sculpt": {
15
- "source": "custom",
16
- "command": "node",
17
- "args": [
18
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
19
- ]
20
- },
21
- "threenative-engine": {
22
- "source": "custom",
23
- "command": "node",
24
- "args": [
25
- "./node_modules/@threenative/core/mcp/engine.mjs"
26
- ]
27
- },
28
- "threenative-animation": {
29
- "source": "custom",
30
- "command": "node",
31
- "args": [
32
- "./node_modules/@threenative/core/mcp/animation.mjs"
33
- ]
34
- },
35
- "threenative-devtools": {
36
- "source": "custom",
37
- "command": "node",
38
- "args": [
39
- "./node_modules/@threenative/core/mcp/devtools.mjs"
40
- ]
41
- }
42
- }
43
- }
@@ -1,28 +0,0 @@
1
- # Sailing starter
2
-
3
- This starter is a small bluewater passage: steer the ship through four buoys in order while a
4
- simulated sea moves underneath the hull. `SpectralOcean` inverse-transforms cascaded wave spectra
5
- on the GPU every frame; the same field displaces the surface that is drawn and answers the height
6
- query `Buoyancy3D` measures the hull against, so the ship floats on the water you can see.
7
- `src/entities/Ship.ts` is deliberately ordinary game code, so handling, hull points, density, and
8
- course rules are easy to replace.
9
-
10
- Controls: drag the left touch stick to steer and sail forward, or use WASD/the arrow keys; `C` is a
11
- capsize/fail test; `R` restarts.
12
-
13
- ## Rendering credit
14
-
15
- `src/render/sky.ts`'s organization is adapted from
16
- [VictorZakharov/beautiful-water](https://github.com/VictorZakharov/beautiful-water), released
17
- under the MIT License. The water is no longer adapted from it: `src/render/ocean.ts` is written
18
- against `SpectralOcean` and is original to this starter, as are the gameplay, materials, palette,
19
- geometry, and ThreeNative integration.
20
-
21
- ## Commands
22
-
23
- ```sh
24
- pnpm dev
25
- pnpm build
26
- pnpm typecheck
27
- pnpm test
28
- ```
@@ -1,49 +0,0 @@
1
- {
2
- "$schema": "https://opencode.ai/config.json",
3
- "mcp": {
4
- "threenative-assets": {
5
- "type": "local",
6
- "command": [
7
- "node",
8
- "./node_modules/@threenative/core/mcp/assets.mjs"
9
- ],
10
- "enabled": true,
11
- "environment": {
12
- "ASSET_DOWNLOAD_DIR": "./public/assets",
13
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
14
- }
15
- },
16
- "threenative-sculpt": {
17
- "type": "local",
18
- "command": [
19
- "node",
20
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
21
- ],
22
- "enabled": true
23
- },
24
- "threenative-engine": {
25
- "type": "local",
26
- "command": [
27
- "node",
28
- "./node_modules/@threenative/core/mcp/engine.mjs"
29
- ],
30
- "enabled": true
31
- },
32
- "threenative-animation": {
33
- "type": "local",
34
- "command": [
35
- "node",
36
- "./node_modules/@threenative/core/mcp/animation.mjs"
37
- ],
38
- "enabled": true
39
- },
40
- "threenative-devtools": {
41
- "type": "local",
42
- "command": [
43
- "node",
44
- "./node_modules/@threenative/core/mcp/devtools.mjs"
45
- ],
46
- "enabled": true
47
- }
48
- }
49
- }
@@ -1,23 +0,0 @@
1
- [mcp_servers.threenative-assets]
2
- command = "node"
3
- args = ["./node_modules/@threenative/core/mcp/assets.mjs"]
4
-
5
- [mcp_servers.threenative-assets.env]
6
- ASSET_DOWNLOAD_DIR = "./public/assets"
7
- AUDIO_DOWNLOAD_DIR = "./public/audio"
8
-
9
- [mcp_servers.threenative-sculpt]
10
- command = "node"
11
- args = ["./node_modules/@threenative/core/mcp/sculpt.mjs"]
12
-
13
- [mcp_servers.threenative-engine]
14
- command = "node"
15
- args = ["./node_modules/@threenative/core/mcp/engine.mjs"]
16
-
17
- [mcp_servers.threenative-animation]
18
- command = "node"
19
- args = ["./node_modules/@threenative/core/mcp/animation.mjs"]
20
-
21
- [mcp_servers.threenative-devtools]
22
- command = "node"
23
- args = ["./node_modules/@threenative/core/mcp/devtools.mjs"]
@@ -1,38 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "threenative-assets": {
4
- "command": "node",
5
- "args": [
6
- "./node_modules/@threenative/core/mcp/assets.mjs"
7
- ],
8
- "env": {
9
- "ASSET_DOWNLOAD_DIR": "./public/assets",
10
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
11
- }
12
- },
13
- "threenative-sculpt": {
14
- "command": "node",
15
- "args": [
16
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
17
- ]
18
- },
19
- "threenative-engine": {
20
- "command": "node",
21
- "args": [
22
- "./node_modules/@threenative/core/mcp/engine.mjs"
23
- ]
24
- },
25
- "threenative-animation": {
26
- "command": "node",
27
- "args": [
28
- "./node_modules/@threenative/core/mcp/animation.mjs"
29
- ]
30
- },
31
- "threenative-devtools": {
32
- "command": "node",
33
- "args": [
34
- "./node_modules/@threenative/core/mcp/devtools.mjs"
35
- ]
36
- }
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "threenative-assets": {
4
- "command": "node",
5
- "args": [
6
- "./node_modules/@threenative/core/mcp/assets.mjs"
7
- ],
8
- "env": {
9
- "ASSET_DOWNLOAD_DIR": "./public/assets",
10
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
11
- }
12
- },
13
- "threenative-sculpt": {
14
- "command": "node",
15
- "args": [
16
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
17
- ]
18
- },
19
- "threenative-engine": {
20
- "command": "node",
21
- "args": [
22
- "./node_modules/@threenative/core/mcp/engine.mjs"
23
- ]
24
- },
25
- "threenative-animation": {
26
- "command": "node",
27
- "args": [
28
- "./node_modules/@threenative/core/mcp/animation.mjs"
29
- ]
30
- },
31
- "threenative-devtools": {
32
- "command": "node",
33
- "args": [
34
- "./node_modules/@threenative/core/mcp/devtools.mjs"
35
- ]
36
- }
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "threenative-assets": {
4
- "command": "node",
5
- "args": [
6
- "./node_modules/@threenative/core/mcp/assets.mjs"
7
- ],
8
- "env": {
9
- "ASSET_DOWNLOAD_DIR": "./public/assets",
10
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
11
- }
12
- },
13
- "threenative-sculpt": {
14
- "command": "node",
15
- "args": [
16
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
17
- ]
18
- },
19
- "threenative-engine": {
20
- "command": "node",
21
- "args": [
22
- "./node_modules/@threenative/core/mcp/engine.mjs"
23
- ]
24
- },
25
- "threenative-animation": {
26
- "command": "node",
27
- "args": [
28
- "./node_modules/@threenative/core/mcp/animation.mjs"
29
- ]
30
- },
31
- "threenative-devtools": {
32
- "command": "node",
33
- "args": [
34
- "./node_modules/@threenative/core/mcp/devtools.mjs"
35
- ]
36
- }
37
- }
38
- }
@@ -1,43 +0,0 @@
1
- {
2
- "servers": {
3
- "threenative-assets": {
4
- "type": "stdio",
5
- "command": "node",
6
- "args": [
7
- "./node_modules/@threenative/core/mcp/assets.mjs"
8
- ],
9
- "env": {
10
- "ASSET_DOWNLOAD_DIR": "./public/assets",
11
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
12
- }
13
- },
14
- "threenative-sculpt": {
15
- "type": "stdio",
16
- "command": "node",
17
- "args": [
18
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
19
- ]
20
- },
21
- "threenative-engine": {
22
- "type": "stdio",
23
- "command": "node",
24
- "args": [
25
- "./node_modules/@threenative/core/mcp/engine.mjs"
26
- ]
27
- },
28
- "threenative-animation": {
29
- "type": "stdio",
30
- "command": "node",
31
- "args": [
32
- "./node_modules/@threenative/core/mcp/animation.mjs"
33
- ]
34
- },
35
- "threenative-devtools": {
36
- "type": "stdio",
37
- "command": "node",
38
- "args": [
39
- "./node_modules/@threenative/core/mcp/devtools.mjs"
40
- ]
41
- }
42
- }
43
- }
@@ -1,43 +0,0 @@
1
- {
2
- "context_servers": {
3
- "threenative-assets": {
4
- "source": "custom",
5
- "command": "node",
6
- "args": [
7
- "./node_modules/@threenative/core/mcp/assets.mjs"
8
- ],
9
- "env": {
10
- "ASSET_DOWNLOAD_DIR": "./public/assets",
11
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
12
- }
13
- },
14
- "threenative-sculpt": {
15
- "source": "custom",
16
- "command": "node",
17
- "args": [
18
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
19
- ]
20
- },
21
- "threenative-engine": {
22
- "source": "custom",
23
- "command": "node",
24
- "args": [
25
- "./node_modules/@threenative/core/mcp/engine.mjs"
26
- ]
27
- },
28
- "threenative-animation": {
29
- "source": "custom",
30
- "command": "node",
31
- "args": [
32
- "./node_modules/@threenative/core/mcp/animation.mjs"
33
- ]
34
- },
35
- "threenative-devtools": {
36
- "source": "custom",
37
- "command": "node",
38
- "args": [
39
- "./node_modules/@threenative/core/mcp/devtools.mjs"
40
- ]
41
- }
42
- }
43
- }
@@ -1,49 +0,0 @@
1
- {
2
- "$schema": "https://opencode.ai/config.json",
3
- "mcp": {
4
- "threenative-assets": {
5
- "type": "local",
6
- "command": [
7
- "node",
8
- "./node_modules/@threenative/core/mcp/assets.mjs"
9
- ],
10
- "enabled": true,
11
- "environment": {
12
- "ASSET_DOWNLOAD_DIR": "./public/assets",
13
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
14
- }
15
- },
16
- "threenative-sculpt": {
17
- "type": "local",
18
- "command": [
19
- "node",
20
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
21
- ],
22
- "enabled": true
23
- },
24
- "threenative-engine": {
25
- "type": "local",
26
- "command": [
27
- "node",
28
- "./node_modules/@threenative/core/mcp/engine.mjs"
29
- ],
30
- "enabled": true
31
- },
32
- "threenative-animation": {
33
- "type": "local",
34
- "command": [
35
- "node",
36
- "./node_modules/@threenative/core/mcp/animation.mjs"
37
- ],
38
- "enabled": true
39
- },
40
- "threenative-devtools": {
41
- "type": "local",
42
- "command": [
43
- "node",
44
- "./node_modules/@threenative/core/mcp/devtools.mjs"
45
- ],
46
- "enabled": true
47
- }
48
- }
49
- }
@@ -1,23 +0,0 @@
1
- [mcp_servers.threenative-assets]
2
- command = "node"
3
- args = ["./node_modules/@threenative/core/mcp/assets.mjs"]
4
-
5
- [mcp_servers.threenative-assets.env]
6
- ASSET_DOWNLOAD_DIR = "./public/assets"
7
- AUDIO_DOWNLOAD_DIR = "./public/audio"
8
-
9
- [mcp_servers.threenative-sculpt]
10
- command = "node"
11
- args = ["./node_modules/@threenative/core/mcp/sculpt.mjs"]
12
-
13
- [mcp_servers.threenative-engine]
14
- command = "node"
15
- args = ["./node_modules/@threenative/core/mcp/engine.mjs"]
16
-
17
- [mcp_servers.threenative-animation]
18
- command = "node"
19
- args = ["./node_modules/@threenative/core/mcp/animation.mjs"]
20
-
21
- [mcp_servers.threenative-devtools]
22
- command = "node"
23
- args = ["./node_modules/@threenative/core/mcp/devtools.mjs"]
@@ -1,38 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "threenative-assets": {
4
- "command": "node",
5
- "args": [
6
- "./node_modules/@threenative/core/mcp/assets.mjs"
7
- ],
8
- "env": {
9
- "ASSET_DOWNLOAD_DIR": "./public/assets",
10
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
11
- }
12
- },
13
- "threenative-sculpt": {
14
- "command": "node",
15
- "args": [
16
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
17
- ]
18
- },
19
- "threenative-engine": {
20
- "command": "node",
21
- "args": [
22
- "./node_modules/@threenative/core/mcp/engine.mjs"
23
- ]
24
- },
25
- "threenative-animation": {
26
- "command": "node",
27
- "args": [
28
- "./node_modules/@threenative/core/mcp/animation.mjs"
29
- ]
30
- },
31
- "threenative-devtools": {
32
- "command": "node",
33
- "args": [
34
- "./node_modules/@threenative/core/mcp/devtools.mjs"
35
- ]
36
- }
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "threenative-assets": {
4
- "command": "node",
5
- "args": [
6
- "./node_modules/@threenative/core/mcp/assets.mjs"
7
- ],
8
- "env": {
9
- "ASSET_DOWNLOAD_DIR": "./public/assets",
10
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
11
- }
12
- },
13
- "threenative-sculpt": {
14
- "command": "node",
15
- "args": [
16
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
17
- ]
18
- },
19
- "threenative-engine": {
20
- "command": "node",
21
- "args": [
22
- "./node_modules/@threenative/core/mcp/engine.mjs"
23
- ]
24
- },
25
- "threenative-animation": {
26
- "command": "node",
27
- "args": [
28
- "./node_modules/@threenative/core/mcp/animation.mjs"
29
- ]
30
- },
31
- "threenative-devtools": {
32
- "command": "node",
33
- "args": [
34
- "./node_modules/@threenative/core/mcp/devtools.mjs"
35
- ]
36
- }
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "threenative-assets": {
4
- "command": "node",
5
- "args": [
6
- "./node_modules/@threenative/core/mcp/assets.mjs"
7
- ],
8
- "env": {
9
- "ASSET_DOWNLOAD_DIR": "./public/assets",
10
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
11
- }
12
- },
13
- "threenative-sculpt": {
14
- "command": "node",
15
- "args": [
16
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
17
- ]
18
- },
19
- "threenative-engine": {
20
- "command": "node",
21
- "args": [
22
- "./node_modules/@threenative/core/mcp/engine.mjs"
23
- ]
24
- },
25
- "threenative-animation": {
26
- "command": "node",
27
- "args": [
28
- "./node_modules/@threenative/core/mcp/animation.mjs"
29
- ]
30
- },
31
- "threenative-devtools": {
32
- "command": "node",
33
- "args": [
34
- "./node_modules/@threenative/core/mcp/devtools.mjs"
35
- ]
36
- }
37
- }
38
- }
@@ -1,43 +0,0 @@
1
- {
2
- "servers": {
3
- "threenative-assets": {
4
- "type": "stdio",
5
- "command": "node",
6
- "args": [
7
- "./node_modules/@threenative/core/mcp/assets.mjs"
8
- ],
9
- "env": {
10
- "ASSET_DOWNLOAD_DIR": "./public/assets",
11
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
12
- }
13
- },
14
- "threenative-sculpt": {
15
- "type": "stdio",
16
- "command": "node",
17
- "args": [
18
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
19
- ]
20
- },
21
- "threenative-engine": {
22
- "type": "stdio",
23
- "command": "node",
24
- "args": [
25
- "./node_modules/@threenative/core/mcp/engine.mjs"
26
- ]
27
- },
28
- "threenative-animation": {
29
- "type": "stdio",
30
- "command": "node",
31
- "args": [
32
- "./node_modules/@threenative/core/mcp/animation.mjs"
33
- ]
34
- },
35
- "threenative-devtools": {
36
- "type": "stdio",
37
- "command": "node",
38
- "args": [
39
- "./node_modules/@threenative/core/mcp/devtools.mjs"
40
- ]
41
- }
42
- }
43
- }
@@ -1,43 +0,0 @@
1
- {
2
- "context_servers": {
3
- "threenative-assets": {
4
- "source": "custom",
5
- "command": "node",
6
- "args": [
7
- "./node_modules/@threenative/core/mcp/assets.mjs"
8
- ],
9
- "env": {
10
- "ASSET_DOWNLOAD_DIR": "./public/assets",
11
- "AUDIO_DOWNLOAD_DIR": "./public/audio"
12
- }
13
- },
14
- "threenative-sculpt": {
15
- "source": "custom",
16
- "command": "node",
17
- "args": [
18
- "./node_modules/@threenative/core/mcp/sculpt.mjs"
19
- ]
20
- },
21
- "threenative-engine": {
22
- "source": "custom",
23
- "command": "node",
24
- "args": [
25
- "./node_modules/@threenative/core/mcp/engine.mjs"
26
- ]
27
- },
28
- "threenative-animation": {
29
- "source": "custom",
30
- "command": "node",
31
- "args": [
32
- "./node_modules/@threenative/core/mcp/animation.mjs"
33
- ]
34
- },
35
- "threenative-devtools": {
36
- "source": "custom",
37
- "command": "node",
38
- "args": [
39
- "./node_modules/@threenative/core/mcp/devtools.mjs"
40
- ]
41
- }
42
- }
43
- }
@@ -1,26 +0,0 @@
1
- # Snow glade starter
2
-
3
- A small winter glade where the snow remembers. The explorer leaves boot prints that sink with
4
- their weight; a ball dropped into the powder settles into the crater it makes, and pushed, it rolls
5
- and carves a connected track. A crate and a fallen log press their own shapes. Switch on the
6
- blizzard and fresh snow slowly fills every track.
7
-
8
- `SnowField` stores the deformation and `attachSnowPhysics` connects it to real Rapier contacts, so
9
- the ball rests on the same surface you see. Everything that decides how it looks — the snow
10
- material, the boot, the explorer, the forest, the flakes — is ordinary source in `src/render/`.
11
-
12
- Controls: WASD or the arrow keys to walk (Shift to run), drag to orbit and scroll to zoom; `F` drops
13
- the ball and `G` pushes it; `B` blizzard, `C` camera view, `V` compaction view, `P` auto-explore,
14
- `R` clears every footprint, `M` sound. On a touch screen, drag the left stick.
15
-
16
- The crunch and wind clips in `assets/` are generated noise; replace either with a recording.
17
-
18
- ## Commands
19
-
20
- ```sh
21
- pnpm dev
22
- pnpm build
23
- pnpm typecheck
24
- pnpm test
25
- pnpm test:native
26
- ```