create-threenative 0.2.15 → 0.2.18
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/agent-docs/kit-mcp.md +10 -0
- package/agent-docs/kit-router.md +14 -0
- package/agent-docs/kit-stuck.md +7 -0
- package/agent-docs/references/assertion-reference.md +54 -110
- package/agent-docs/references/capability-reference.md +1740 -254
- package/agent-docs/references/conventions.md +299 -0
- package/agent-docs/references/kit-action-rpg.md +40 -0
- package/agent-docs/references/kit-adventure.md +40 -0
- package/agent-docs/references/kit-collectathon.md +38 -0
- package/agent-docs/references/kit-kart.md +31 -0
- package/agent-docs/references/kit-minimal.md +29 -0
- package/agent-docs/references/kit-platformer.md +34 -0
- package/agent-docs/references/kit-puzzle.md +22 -0
- package/agent-docs/references/kit-racing.md +26 -0
- package/agent-docs/references/kit-rain.md +31 -0
- package/agent-docs/references/kit-rts.md +34 -0
- package/agent-docs/references/kit-runner.md +32 -0
- package/agent-docs/references/kit-sailing.md +41 -0
- package/agent-docs/references/kit-shooter.md +33 -0
- package/agent-docs/references/kit-snow.md +33 -0
- package/agent-docs/references/kit-starter.md +55 -0
- package/agent-docs/references/kit-tower-defense.md +27 -0
- package/agent-docs/references/performance-basics.md +8 -4
- package/agent-docs/references/terrain-authoring.md +2 -1
- package/agent-files/.agents/skills/ponytail/SKILL.md +1 -1
- package/agent-files/.agents/skills/prd-creator/SKILL.md +3 -2
- package/agent-files/.agents/skills/threenative-capabilities/SKILL.md +84 -59
- package/agent-files/.claude/hooks/discovery-gate.mjs +125 -0
- package/agent-files/.claude/hooks/ponytail-context.mjs +1 -1
- package/agent-files/.claude/settings.json +25 -0
- package/agent-files/.codex/hooks.json +18 -1
- package/dist/index.d.ts +97 -6
- package/dist/index.js +899 -271
- package/dist/terrain-kit.d.ts +7 -0
- package/dist/terrain-kit.js +82 -0
- package/dist/threenative.js +114 -16
- package/dist/web-engine-ccd-ik-solver.js +127 -0
- package/dist/web-engine-gltf-loader.js +71 -20
- package/dist/web-engine-post-effects.js +39 -14
- package/dist/web-engine-runtime.js +10011 -4101
- package/package.json +15 -9
- package/template-assets/clearwater/README.md +1 -1
- package/template-assets/patches/manifest.json +18 -0
- package/template-assets/patches/three@0.187.0.patch +2004 -407
- package/template-assets/terrain/alpine/assets.json +12 -0
- package/template-assets/terrain/alpine/bake.mjs +6 -0
- package/template-assets/terrain/alpine/credits.json +164 -0
- package/template-assets/terrain/alpine/heightmap.r16 +0 -0
- package/template-assets/terrain/alpine/recipe.json +119 -0
- package/template-assets/terrain/alpine/surface.json +53 -0
- package/template-assets/terrain/coastal/assets.json +11 -0
- package/template-assets/terrain/coastal/bake.mjs +6 -0
- package/template-assets/terrain/coastal/credits.json +117 -0
- package/template-assets/terrain/coastal/heightmap.r16 +0 -0
- package/template-assets/terrain/coastal/recipe.json +113 -0
- package/template-assets/terrain/coastal/surface.json +41 -0
- package/template-assets/terrain/desert/assets.json +12 -0
- package/template-assets/terrain/desert/bake.mjs +6 -0
- package/template-assets/terrain/desert/credits.json +164 -0
- package/template-assets/terrain/desert/heightmap.r16 +0 -0
- package/template-assets/terrain/desert/recipe.json +108 -0
- package/template-assets/terrain/desert/surface.json +54 -0
- package/template-assets/terrain/forest/assets.json +65 -0
- package/template-assets/terrain/forest/bake.mjs +8 -0
- package/template-assets/terrain/forest/credits.json +225 -0
- package/template-assets/terrain/forest/heightmap.r16 +0 -0
- package/template-assets/terrain/forest/recipe.json +350 -0
- package/template-assets/terrain/forest/surface.json +79 -0
- package/template-assets/terrain/tundra/assets.json +12 -0
- package/template-assets/terrain/tundra/bake.mjs +6 -0
- package/template-assets/terrain/tundra/credits.json +164 -0
- package/template-assets/terrain/tundra/heightmap.r16 +0 -0
- package/template-assets/terrain/tundra/recipe.json +277 -0
- package/template-assets/terrain/tundra/surface.json +54 -0
- package/templates/action-rpg/AGENTS.md +103 -84
- package/templates/action-rpg/CLAUDE.md +103 -84
- package/templates/action-rpg/kit.json +1 -0
- package/templates/action-rpg/package.json +7 -7
- package/templates/action-rpg/playtests/spells.playtest.json +20 -0
- package/templates/action-rpg/src/game.ts +2 -1
- package/templates/action-rpg/src/render/atmosphere.ts +11 -16
- package/templates/action-rpg/src/render/backlightControls.ts +10 -0
- package/templates/action-rpg/src/render/backlightMaterial.ts +4 -4
- package/templates/action-rpg/src/render/clouds.ts +13 -0
- package/templates/action-rpg/src/render/gpuSky.ts +4 -7
- package/templates/action-rpg/src/render/materialLighting.ts +5 -5
- package/templates/action-rpg/src/render/quality.ts +10 -33
- package/templates/action-rpg/src/scenes/Play.ts +30 -1
- package/templates/action-rpg/src/style.css +4 -0
- package/templates/action-rpg/src/ui/AbilityBar.tsx +1 -1
- package/templates/action-rpg/threenative.config.ts +0 -3
- package/templates/action-rpg/vite.config.ts +2 -0
- package/templates/adventure/AGENTS.md +92 -44
- package/templates/adventure/CLAUDE.md +92 -44
- package/templates/adventure/kit.json +5 -1
- package/templates/adventure/package.json +7 -7
- package/templates/adventure/src/game.ts +1 -1
- package/templates/adventure/src/style.css +4 -0
- package/templates/adventure/tsconfig.json +1 -1
- package/templates/adventure/vite.config.ts +2 -0
- package/templates/collectathon/AGENTS.md +93 -42
- package/templates/collectathon/CLAUDE.md +93 -42
- package/templates/collectathon/package.json +7 -7
- package/templates/collectathon/src/game.ts +1 -1
- package/templates/collectathon/src/level/Course.ts +55 -9
- package/templates/collectathon/src/level/terrain.ts +27 -6
- package/templates/collectathon/src/main.ts +1 -0
- package/templates/collectathon/src/render/foliage.ts +359 -98
- package/templates/collectathon/src/render/sky.ts +76 -12
- package/templates/collectathon/src/render/water.ts +32 -10
- package/templates/collectathon/src/scenes/Play.ts +18 -5
- package/templates/collectathon/src/style.css +4 -0
- package/templates/collectathon/tsconfig.json +1 -1
- package/templates/collectathon/vite.config.ts +2 -0
- package/templates/kart/AGENTS.md +87 -42
- package/templates/kart/CLAUDE.md +87 -42
- package/templates/kart/package.json +6 -6
- package/templates/kart/src/game.ts +1 -1
- package/templates/kart/src/main.ts +1 -0
- package/templates/kart/src/style.css +4 -0
- package/templates/kart/tsconfig.json +1 -1
- package/templates/kart/vite.config.ts +2 -0
- package/templates/minimal/AGENTS.md +105 -84
- package/templates/minimal/CLAUDE.md +105 -84
- package/templates/minimal/package.json +6 -6
- package/templates/minimal/playtests/stands-still.playtest.json +30 -0
- package/templates/minimal/src/game.ts +1 -1
- package/templates/minimal/src/render/atmosphere.ts +11 -16
- package/templates/minimal/src/render/backlightControls.ts +10 -0
- package/templates/minimal/src/render/backlightMaterial.ts +4 -4
- package/templates/minimal/src/render/camera.ts +13 -2
- package/templates/minimal/src/render/clouds.ts +13 -0
- package/templates/minimal/src/render/gpuSky.ts +4 -7
- package/templates/minimal/src/render/lighting.ts +4 -2
- package/templates/minimal/src/render/materialLighting.ts +5 -5
- package/templates/minimal/src/render/materials.ts +10 -0
- package/templates/minimal/src/render/quality.ts +7 -32
- package/templates/minimal/src/scenes/Play.ts +4 -1
- package/templates/minimal/vite.config.ts +7 -1
- package/templates/platformer/AGENTS.md +95 -46
- package/templates/platformer/CLAUDE.md +95 -46
- package/templates/platformer/index.html +1 -1
- package/templates/platformer/main.html +12 -0
- package/templates/platformer/package.json +7 -7
- package/templates/platformer/playtests/gamepad-idle.playtest.json +21 -0
- package/templates/platformer/playtests/gamepad.playtest.json +30 -0
- package/templates/platformer/src/entities/Fox.ts +21 -6
- package/templates/platformer/src/game.ts +1 -1
- package/templates/platformer/src/main.ts +1 -0
- package/templates/platformer/src/render/backlightControls.ts +10 -0
- package/templates/platformer/src/render/backlightMaterial.ts +4 -4
- package/templates/platformer/src/render/materialLighting.ts +5 -5
- package/templates/platformer/src/render/quality.ts +7 -32
- package/templates/platformer/src/scenes/Play.ts +2 -1
- package/templates/platformer/src/style.css +4 -0
- package/templates/platformer/src/worker-page.ts +29 -0
- package/templates/platformer/src/worker.ts +5 -0
- package/templates/platformer/tsconfig.json +1 -1
- package/templates/platformer/vite.config.ts +4 -0
- package/templates/puzzle/AGENTS.md +97 -80
- package/templates/puzzle/CLAUDE.md +97 -80
- package/templates/puzzle/package.json +7 -7
- package/templates/puzzle/src/game.ts +1 -1
- package/templates/puzzle/src/render/backlightControls.ts +10 -0
- package/templates/puzzle/src/render/backlightMaterial.ts +4 -4
- package/templates/puzzle/src/render/materialLighting.ts +5 -5
- package/templates/puzzle/src/render/quality.ts +7 -32
- package/templates/puzzle/src/scenes/Play.ts +1 -1
- package/templates/puzzle/src/style.css +4 -0
- package/templates/puzzle/tsconfig.json +1 -1
- package/templates/puzzle/vite.config.ts +2 -0
- package/templates/racing/AGENTS.md +100 -82
- package/templates/racing/CLAUDE.md +100 -82
- package/templates/racing/package.json +7 -7
- package/templates/racing/src/game.ts +1 -1
- package/templates/racing/src/render/atmosphere.ts +11 -16
- package/templates/racing/src/render/backlightControls.ts +10 -0
- package/templates/racing/src/render/backlightMaterial.ts +4 -4
- package/templates/racing/src/render/clouds.ts +13 -0
- package/templates/racing/src/render/gpuSky.ts +4 -7
- package/templates/racing/src/render/materialLighting.ts +5 -5
- package/templates/racing/src/render/quality.ts +7 -32
- package/templates/racing/src/scenes/Race.ts +4 -1
- package/templates/racing/src/style.css +4 -0
- package/templates/racing/tsconfig.json +1 -1
- package/templates/racing/vite.config.ts +2 -0
- package/templates/rain/AGENTS.md +96 -84
- package/templates/rain/CLAUDE.md +96 -84
- package/templates/rain/native-playtests/lightning.playtest.json +85 -10
- package/templates/rain/package.json +6 -6
- package/templates/rain/playtests/reduced-motion.playtest.json +6 -0
- package/templates/rain/src/game.ts +1 -1
- package/templates/rain/src/scenes/Boot.ts +1 -0
- package/templates/rain/src/state.ts +7 -0
- package/templates/rain/src/ui/GameUi.tsx +7 -1
- package/templates/rain/vite.config.ts +6 -0
- package/templates/rts/AGENTS.md +100 -85
- package/templates/rts/CLAUDE.md +100 -85
- package/templates/rts/package.json +6 -6
- package/templates/rts/src/game.ts +1 -1
- package/templates/rts/src/render/backlightControls.ts +10 -0
- package/templates/rts/src/render/backlightMaterial.ts +4 -4
- package/templates/rts/src/render/materialLighting.ts +5 -5
- package/templates/rts/src/render/quality.ts +7 -31
- package/templates/rts/src/scenes/Play.ts +1 -1
- package/templates/rts/src/style.css +4 -0
- package/templates/rts/vite.config.ts +2 -0
- package/templates/runner/AGENTS.md +97 -80
- package/templates/runner/CLAUDE.md +97 -80
- package/templates/runner/package.json +7 -7
- package/templates/runner/playtests/performance.playtest.json +1 -1
- package/templates/runner/src/game.ts +1 -1
- package/templates/runner/src/render/atmosphere.ts +11 -16
- package/templates/runner/src/render/backlightControls.ts +10 -0
- package/templates/runner/src/render/backlightMaterial.ts +4 -4
- package/templates/runner/src/render/clouds.ts +13 -0
- package/templates/runner/src/render/gpuSky.ts +4 -7
- package/templates/runner/src/render/lighting.ts +53 -11
- package/templates/runner/src/render/materialLighting.ts +5 -5
- package/templates/runner/src/render/quality.ts +7 -32
- package/templates/runner/src/scenes/Run.ts +8 -4
- package/templates/runner/src/style.css +4 -0
- package/templates/runner/threenative.config.ts +0 -3
- package/templates/runner/tsconfig.json +1 -1
- package/templates/runner/vite.config.ts +2 -0
- package/templates/sailing/AGENTS.md +96 -79
- package/templates/sailing/CLAUDE.md +96 -79
- package/templates/sailing/package.json +7 -7
- package/templates/sailing/playtests/sails.playtest.json +1 -0
- package/templates/sailing/src/game.ts +1 -1
- package/templates/sailing/src/render/backlightControls.ts +10 -0
- package/templates/sailing/src/render/backlightMaterial.ts +4 -4
- package/templates/sailing/src/render/environmentSetup.ts +1 -1
- package/templates/sailing/src/render/materialLighting.ts +5 -5
- package/templates/sailing/src/render/quality.ts +7 -32
- package/templates/sailing/src/render/sky.ts +4 -0
- package/templates/sailing/src/style.css +5 -0
- package/templates/sailing/threenative.config.ts +0 -3
- package/templates/sailing/vite.config.ts +6 -0
- package/templates/shooter/AGENTS.md +97 -68
- package/templates/shooter/CLAUDE.md +97 -68
- package/templates/shooter/package.json +7 -7
- package/templates/shooter/src/game.ts +3 -2
- package/templates/shooter/src/render/atmosphere.ts +11 -16
- package/templates/shooter/src/render/backlightControls.ts +10 -0
- package/templates/shooter/src/render/backlightMaterial.ts +4 -4
- package/templates/shooter/src/render/clouds.ts +13 -0
- package/templates/shooter/src/render/gpuSky.ts +4 -7
- package/templates/shooter/src/render/materialLighting.ts +5 -5
- package/templates/shooter/src/render/quality.ts +10 -33
- package/templates/shooter/src/scenes/Play.ts +4 -1
- package/templates/shooter/src/style.css +4 -0
- package/templates/shooter/vite.config.ts +2 -0
- package/templates/snow/AGENTS.md +95 -76
- package/templates/snow/CLAUDE.md +95 -76
- package/templates/snow/package.json +7 -7
- package/templates/snow/src/game.ts +1 -1
- package/templates/snow/src/render/backlightControls.ts +10 -0
- package/templates/snow/src/render/backlightMaterial.ts +4 -4
- package/templates/snow/src/render/materialLighting.ts +5 -5
- package/templates/snow/src/render/quality.ts +7 -32
- package/templates/snow/src/style.css +5 -0
- package/templates/snow/threenative.config.ts +0 -3
- package/templates/snow/vite.config.ts +6 -0
- package/templates/starter/AGENTS.md +109 -88
- package/templates/starter/CLAUDE.md +109 -88
- package/templates/starter/native-playtests/render-chain.playtest.json +24 -24
- package/templates/starter/native-playtests/smooth-motion.playtest.json +3 -3
- package/templates/starter/package.json +7 -7
- package/templates/starter/src/entities/Crate.ts +5 -2
- package/templates/starter/src/entities/Player.ts +10 -22
- package/templates/starter/src/game.ts +4 -3
- package/templates/starter/src/render/adaptiveQuality.ts +17 -0
- package/templates/starter/src/render/atmosphere.ts +11 -16
- package/templates/starter/src/render/backlightControls.ts +10 -0
- package/templates/starter/src/render/backlightMaterial.ts +4 -4
- package/templates/starter/src/render/clouds.ts +13 -0
- package/templates/starter/src/render/contactShadow.ts +1 -1
- package/templates/starter/src/render/gpuSky.ts +4 -7
- package/templates/starter/src/render/lighting.ts +54 -4
- package/templates/starter/src/render/materialLighting.ts +5 -5
- package/templates/starter/src/render/postprocessing.ts +11 -10
- package/templates/starter/src/render/quality.ts +14 -1
- package/templates/starter/src/render/temporalAA.ts +8 -7
- package/templates/starter/src/render/temporalAAFrame.ts +30 -9
- package/templates/starter/src/render/temporalAAResolve.ts +15 -1
- package/templates/starter/src/render/temporalClampRelease.ts +183 -0
- package/templates/starter/src/render/temporalHistoryResolve.ts +90 -0
- package/templates/starter/src/render/temporalMoire.ts +190 -0
- package/templates/starter/src/render/temporalResolve.ts +75 -16
- package/templates/starter/src/render/temporalResolveDepth.ts +2 -0
- package/templates/starter/src/scenes/Play.ts +53 -32
- package/templates/starter/src/state.ts +2 -0
- package/templates/starter/src/style.css +4 -0
- package/templates/starter/src/ui/Menu.tsx +5 -1
- package/templates/starter/vite.config.ts +2 -0
- package/templates/tower-defense/AGENTS.md +97 -81
- package/templates/tower-defense/CLAUDE.md +97 -81
- package/templates/tower-defense/package.json +7 -7
- package/templates/tower-defense/src/game.ts +1 -1
- package/templates/tower-defense/src/render/backlightControls.ts +10 -0
- package/templates/tower-defense/src/render/backlightMaterial.ts +4 -4
- package/templates/tower-defense/src/render/materialLighting.ts +5 -5
- package/templates/tower-defense/src/render/quality.ts +7 -32
- package/templates/tower-defense/src/scenes/Battle.ts +1 -1
- package/templates/tower-defense/src/style.css +4 -0
- package/templates/tower-defense/tsconfig.json +1 -1
- package/templates/tower-defense/vite.config.ts +2 -0
- package/capabilities.json +0 -9197
- package/templates/AGENTS.md +0 -21
- package/templates/CLAUDE.md +0 -23
- package/templates/action-rpg/.codex/config.toml +0 -23
- package/templates/action-rpg/.cursor/mcp.json +0 -38
- package/templates/action-rpg/.gemini/settings.json +0 -38
- package/templates/action-rpg/.mcp.json +0 -38
- package/templates/action-rpg/.vscode/mcp.json +0 -43
- package/templates/action-rpg/.zed/settings.json +0 -43
- package/templates/action-rpg/opencode.json +0 -49
- package/templates/action-rpg/src/render/environmentContribution.ts +0 -188
- package/templates/action-rpg/src/render/environmentRadiance.ts +0 -36
- package/templates/action-rpg/src/render/environmentSampleCache.ts +0 -43
- package/templates/action-rpg/src/render/environmentSampling.ts +0 -193
- package/templates/action-rpg/src/render/environmentSnapshot.ts +0 -53
- package/templates/adventure/.codex/config.toml +0 -23
- package/templates/adventure/.cursor/mcp.json +0 -38
- package/templates/adventure/.gemini/settings.json +0 -38
- package/templates/adventure/.mcp.json +0 -38
- package/templates/adventure/.vscode/mcp.json +0 -43
- package/templates/adventure/.zed/settings.json +0 -43
- package/templates/adventure/opencode.json +0 -49
- package/templates/collectathon/.codex/config.toml +0 -23
- package/templates/collectathon/.cursor/mcp.json +0 -38
- package/templates/collectathon/.gemini/settings.json +0 -38
- package/templates/collectathon/.mcp.json +0 -38
- package/templates/collectathon/.vscode/mcp.json +0 -43
- package/templates/collectathon/.zed/settings.json +0 -43
- package/templates/collectathon/opencode.json +0 -49
- package/templates/kart/.codex/config.toml +0 -23
- package/templates/kart/.cursor/mcp.json +0 -38
- package/templates/kart/.gemini/settings.json +0 -38
- package/templates/kart/.mcp.json +0 -38
- package/templates/kart/.vscode/mcp.json +0 -43
- package/templates/kart/.zed/settings.json +0 -43
- package/templates/kart/opencode.json +0 -49
- package/templates/minimal/.codex/config.toml +0 -23
- package/templates/minimal/.cursor/mcp.json +0 -38
- package/templates/minimal/.gemini/settings.json +0 -38
- package/templates/minimal/.mcp.json +0 -38
- package/templates/minimal/.vscode/mcp.json +0 -43
- package/templates/minimal/.zed/settings.json +0 -43
- package/templates/minimal/opencode.json +0 -49
- package/templates/minimal/src/render/environmentContribution.ts +0 -188
- package/templates/minimal/src/render/environmentRadiance.ts +0 -36
- package/templates/minimal/src/render/environmentSampleCache.ts +0 -43
- package/templates/minimal/src/render/environmentSampling.ts +0 -193
- package/templates/minimal/src/render/environmentSnapshot.ts +0 -53
- package/templates/platformer/.codex/config.toml +0 -23
- package/templates/platformer/.cursor/mcp.json +0 -38
- package/templates/platformer/.gemini/settings.json +0 -38
- package/templates/platformer/.mcp.json +0 -38
- package/templates/platformer/.vscode/mcp.json +0 -43
- package/templates/platformer/.zed/settings.json +0 -43
- package/templates/platformer/opencode.json +0 -49
- package/templates/platformer/src/render/environmentContribution.ts +0 -188
- package/templates/platformer/src/render/environmentRadiance.ts +0 -36
- package/templates/platformer/src/render/environmentSampleCache.ts +0 -43
- package/templates/platformer/src/render/environmentSampling.ts +0 -193
- package/templates/platformer/src/render/environmentSnapshot.ts +0 -53
- package/templates/puzzle/.codex/config.toml +0 -23
- package/templates/puzzle/.cursor/mcp.json +0 -38
- package/templates/puzzle/.gemini/settings.json +0 -38
- package/templates/puzzle/.mcp.json +0 -38
- package/templates/puzzle/.vscode/mcp.json +0 -43
- package/templates/puzzle/.zed/settings.json +0 -43
- package/templates/puzzle/opencode.json +0 -49
- package/templates/puzzle/src/render/environmentContribution.ts +0 -188
- package/templates/puzzle/src/render/environmentRadiance.ts +0 -36
- package/templates/puzzle/src/render/environmentSampleCache.ts +0 -43
- package/templates/puzzle/src/render/environmentSampling.ts +0 -193
- package/templates/puzzle/src/render/environmentSnapshot.ts +0 -53
- package/templates/racing/.codex/config.toml +0 -23
- package/templates/racing/.cursor/mcp.json +0 -38
- package/templates/racing/.gemini/settings.json +0 -38
- package/templates/racing/.mcp.json +0 -38
- package/templates/racing/.vscode/mcp.json +0 -43
- package/templates/racing/.zed/settings.json +0 -43
- package/templates/racing/opencode.json +0 -49
- package/templates/racing/src/render/environmentContribution.ts +0 -188
- package/templates/racing/src/render/environmentRadiance.ts +0 -36
- package/templates/racing/src/render/environmentSampleCache.ts +0 -43
- package/templates/racing/src/render/environmentSampling.ts +0 -193
- package/templates/racing/src/render/environmentSnapshot.ts +0 -53
- package/templates/rain/.codex/config.toml +0 -23
- package/templates/rain/.cursor/mcp.json +0 -38
- package/templates/rain/.gemini/settings.json +0 -38
- package/templates/rain/.mcp.json +0 -38
- package/templates/rain/.vscode/mcp.json +0 -43
- package/templates/rain/.zed/settings.json +0 -43
- package/templates/rain/opencode.json +0 -49
- package/templates/rts/.codex/config.toml +0 -23
- package/templates/rts/.cursor/mcp.json +0 -38
- package/templates/rts/.gemini/settings.json +0 -38
- package/templates/rts/.mcp.json +0 -38
- package/templates/rts/.vscode/mcp.json +0 -43
- package/templates/rts/.zed/settings.json +0 -43
- package/templates/rts/opencode.json +0 -49
- package/templates/rts/src/render/environmentContribution.ts +0 -188
- package/templates/rts/src/render/environmentRadiance.ts +0 -36
- package/templates/rts/src/render/environmentSampleCache.ts +0 -43
- package/templates/rts/src/render/environmentSampling.ts +0 -193
- package/templates/rts/src/render/environmentSnapshot.ts +0 -53
- package/templates/runner/.codex/config.toml +0 -23
- package/templates/runner/.cursor/mcp.json +0 -38
- package/templates/runner/.gemini/settings.json +0 -38
- package/templates/runner/.mcp.json +0 -38
- package/templates/runner/.vscode/mcp.json +0 -43
- package/templates/runner/.zed/settings.json +0 -43
- package/templates/runner/README.md +0 -43
- package/templates/runner/opencode.json +0 -49
- package/templates/runner/src/render/environmentContribution.ts +0 -188
- package/templates/runner/src/render/environmentRadiance.ts +0 -36
- package/templates/runner/src/render/environmentSampleCache.ts +0 -43
- package/templates/runner/src/render/environmentSampling.ts +0 -193
- package/templates/runner/src/render/environmentSnapshot.ts +0 -53
- package/templates/sailing/.codex/config.toml +0 -23
- package/templates/sailing/.cursor/mcp.json +0 -38
- package/templates/sailing/.gemini/settings.json +0 -38
- package/templates/sailing/.mcp.json +0 -38
- package/templates/sailing/.vscode/mcp.json +0 -43
- package/templates/sailing/.zed/settings.json +0 -43
- package/templates/sailing/README.md +0 -28
- package/templates/sailing/opencode.json +0 -49
- package/templates/sailing/src/render/environmentContribution.ts +0 -188
- package/templates/sailing/src/render/environmentRadiance.ts +0 -36
- package/templates/sailing/src/render/environmentSampleCache.ts +0 -43
- package/templates/sailing/src/render/environmentSampling.ts +0 -193
- package/templates/sailing/src/render/environmentSnapshot.ts +0 -53
- package/templates/shooter/.codex/config.toml +0 -23
- package/templates/shooter/.cursor/mcp.json +0 -38
- package/templates/shooter/.gemini/settings.json +0 -38
- package/templates/shooter/.mcp.json +0 -38
- package/templates/shooter/.vscode/mcp.json +0 -43
- package/templates/shooter/.zed/settings.json +0 -43
- package/templates/shooter/opencode.json +0 -49
- package/templates/shooter/src/render/environmentContribution.ts +0 -188
- package/templates/shooter/src/render/environmentRadiance.ts +0 -36
- package/templates/shooter/src/render/environmentSampleCache.ts +0 -43
- package/templates/shooter/src/render/environmentSampling.ts +0 -193
- package/templates/shooter/src/render/environmentSnapshot.ts +0 -53
- package/templates/snow/.codex/config.toml +0 -23
- package/templates/snow/.cursor/mcp.json +0 -38
- package/templates/snow/.gemini/settings.json +0 -38
- package/templates/snow/.mcp.json +0 -38
- package/templates/snow/.vscode/mcp.json +0 -43
- package/templates/snow/.zed/settings.json +0 -43
- package/templates/snow/README.md +0 -26
- package/templates/snow/opencode.json +0 -49
- package/templates/snow/src/render/environmentContribution.ts +0 -188
- package/templates/snow/src/render/environmentRadiance.ts +0 -36
- package/templates/snow/src/render/environmentSampleCache.ts +0 -43
- package/templates/snow/src/render/environmentSampling.ts +0 -193
- package/templates/snow/src/render/environmentSnapshot.ts +0 -53
- package/templates/starter/.codex/config.toml +0 -23
- package/templates/starter/.cursor/mcp.json +0 -38
- package/templates/starter/.gemini/settings.json +0 -38
- package/templates/starter/.mcp.json +0 -38
- package/templates/starter/.vscode/mcp.json +0 -43
- package/templates/starter/.zed/settings.json +0 -43
- package/templates/starter/opencode.json +0 -49
- package/templates/starter/src/render/environmentContribution.ts +0 -188
- package/templates/starter/src/render/environmentRadiance.ts +0 -36
- package/templates/starter/src/render/environmentSampleCache.ts +0 -43
- package/templates/starter/src/render/environmentSampling.ts +0 -193
- package/templates/starter/src/render/environmentSnapshot.ts +0 -53
- package/templates/starter/src/render/rendererGate.ts +0 -36
- package/templates/tower-defense/.codex/config.toml +0 -23
- package/templates/tower-defense/.cursor/mcp.json +0 -38
- package/templates/tower-defense/.gemini/settings.json +0 -38
- package/templates/tower-defense/.mcp.json +0 -38
- package/templates/tower-defense/.vscode/mcp.json +0 -43
- package/templates/tower-defense/.zed/settings.json +0 -43
- package/templates/tower-defense/README.md +0 -16
- package/templates/tower-defense/opencode.json +0 -49
- package/templates/tower-defense/src/render/environmentContribution.ts +0 -188
- package/templates/tower-defense/src/render/environmentRadiance.ts +0 -36
- package/templates/tower-defense/src/render/environmentSampleCache.ts +0 -43
- package/templates/tower-defense/src/render/environmentSampling.ts +0 -193
- package/templates/tower-defense/src/render/environmentSnapshot.ts +0 -53
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"kit": "desert",
|
|
4
|
+
"purpose": "Credits for the sets, textures, props and sky this kit cites. Each record is copied from starter-assets/credits.json.",
|
|
5
|
+
"source": "Poly Haven",
|
|
6
|
+
"sourceUrl": "https://polyhaven.com",
|
|
7
|
+
"license": "CC0 1.0 Universal (public domain dedication)",
|
|
8
|
+
"licenseUrl": "https://polyhaven.com/license",
|
|
9
|
+
"sets": {
|
|
10
|
+
"sand_01": {
|
|
11
|
+
"asset": "Sand 01",
|
|
12
|
+
"author": "Rob Tuytel",
|
|
13
|
+
"license": "CC0",
|
|
14
|
+
"groundLayer": "sand",
|
|
15
|
+
"metresPerTile": 3.2,
|
|
16
|
+
"note": "The 1K diffuse and GL normal map are seam-blended for tiling: each cross-fades its edges with a half-shifted copy. Diffuse left-right seam ratio 1.51 to 0.95; top-bottom 1.43 to 1.13. Only the edges changed; the source is Poly Haven, CC0."
|
|
17
|
+
},
|
|
18
|
+
"forest_ground_04": {
|
|
19
|
+
"asset": "Forest Ground 04",
|
|
20
|
+
"author": "Rob Tuytel, Rico Cilliers",
|
|
21
|
+
"license": "CC0",
|
|
22
|
+
"groundLayer": "dirt",
|
|
23
|
+
"metresPerTile": 3.4,
|
|
24
|
+
"note": null
|
|
25
|
+
},
|
|
26
|
+
"rock_boulder_dry": {
|
|
27
|
+
"asset": "Rock Boulder Dry",
|
|
28
|
+
"author": "Dimitrios Savva (Photography), Rico Cilliers (Processing)",
|
|
29
|
+
"license": "CC0",
|
|
30
|
+
"groundLayer": null,
|
|
31
|
+
"metresPerTile": null,
|
|
32
|
+
"note": "The dry grey granite-ish boulder set. Its 1K diffuse is tileable stone, not an atlas: the seam column differs from the last by 5.7 grey levels against an interior neighbour difference of 7.5, so it wraps as well as the map averages."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
{
|
|
37
|
+
"set": "sand_01",
|
|
38
|
+
"asset": "Sand 01",
|
|
39
|
+
"author": "Rob Tuytel",
|
|
40
|
+
"license": "CC0",
|
|
41
|
+
"map": "diff",
|
|
42
|
+
"file": "sand_01/sand_01_diff_1k.jpg",
|
|
43
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/sand_01/sand_01_diff_1k.jpg",
|
|
44
|
+
"bytes": 485088,
|
|
45
|
+
"dimensions": "1024x1024",
|
|
46
|
+
"colourSpace": "srgb",
|
|
47
|
+
"metresPerTile": 3.2,
|
|
48
|
+
"groundLayer": "sand",
|
|
49
|
+
"sampledByTemperateGround": true,
|
|
50
|
+
"sha256": "a73b90eaa6d675ef57e7d48a8cf23e1f412e353ab2e29cf73930b8ecd4e76875"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"set": "sand_01",
|
|
54
|
+
"asset": "Sand 01",
|
|
55
|
+
"author": "Rob Tuytel",
|
|
56
|
+
"license": "CC0",
|
|
57
|
+
"map": "nor_gl",
|
|
58
|
+
"file": "sand_01/sand_01_nor_gl_1k.jpg",
|
|
59
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/sand_01/sand_01_nor_gl_1k.jpg",
|
|
60
|
+
"bytes": 877821,
|
|
61
|
+
"dimensions": "1024x1024",
|
|
62
|
+
"colourSpace": "linear",
|
|
63
|
+
"metresPerTile": 3.2,
|
|
64
|
+
"groundLayer": "sand",
|
|
65
|
+
"sampledByTemperateGround": false,
|
|
66
|
+
"sha256": "73984aecdc35b1ffbc322d64b7f8d8165b06970d11f37dd47010609fcb532704"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"set": "forest_ground_04",
|
|
70
|
+
"asset": "Forest Ground 04",
|
|
71
|
+
"author": "Rob Tuytel, Rico Cilliers",
|
|
72
|
+
"license": "CC0",
|
|
73
|
+
"map": "diff",
|
|
74
|
+
"file": "forest_ground_04/forest_ground_04_diff_1k.jpg",
|
|
75
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/forest_ground_04/forest_ground_04_diff_1k.jpg",
|
|
76
|
+
"bytes": 1113899,
|
|
77
|
+
"dimensions": "1024x1024",
|
|
78
|
+
"colourSpace": "srgb",
|
|
79
|
+
"metresPerTile": 3.4,
|
|
80
|
+
"groundLayer": "dirt",
|
|
81
|
+
"sampledByTemperateGround": true,
|
|
82
|
+
"sha256": "50a4dda30875020c64385261aa7e00e2155b592302fa6794165f58fae73cbd2c"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"set": "forest_ground_04",
|
|
86
|
+
"asset": "Forest Ground 04",
|
|
87
|
+
"author": "Rob Tuytel, Rico Cilliers",
|
|
88
|
+
"license": "CC0",
|
|
89
|
+
"map": "nor_gl",
|
|
90
|
+
"file": "forest_ground_04/forest_ground_04_nor_gl_1k.jpg",
|
|
91
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/forest_ground_04/forest_ground_04_nor_gl_1k.jpg",
|
|
92
|
+
"bytes": 1326812,
|
|
93
|
+
"dimensions": "1024x1024",
|
|
94
|
+
"colourSpace": "linear",
|
|
95
|
+
"metresPerTile": 3.4,
|
|
96
|
+
"groundLayer": "dirt",
|
|
97
|
+
"sampledByTemperateGround": true,
|
|
98
|
+
"sha256": "9c3a0200e02ce40edffbbf9f5f623ef08ea9b1b7812b556182ec978f88887151"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"set": "rock_boulder_dry",
|
|
102
|
+
"asset": "Rock Boulder Dry",
|
|
103
|
+
"author": "Dimitrios Savva (Photography), Rico Cilliers (Processing)",
|
|
104
|
+
"license": "CC0",
|
|
105
|
+
"map": "diff",
|
|
106
|
+
"file": "rock_boulder_dry/rock_boulder_dry_diff_512.jpg",
|
|
107
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/rock_boulder_dry/rock_boulder_dry_diff_1k.jpg",
|
|
108
|
+
"bytes": 87707,
|
|
109
|
+
"dimensions": "512x512",
|
|
110
|
+
"colourSpace": "srgb",
|
|
111
|
+
"metresPerTile": null,
|
|
112
|
+
"groundLayer": null,
|
|
113
|
+
"sampledByTemperateGround": false,
|
|
114
|
+
"sha256": "dde5d4cf88dce2a3bcde0490c509f0a5f375c4aa002aa08f96afa6e0fb4f6c7b"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"set": "rock_boulder_dry",
|
|
118
|
+
"asset": "Rock Boulder Dry",
|
|
119
|
+
"author": "Dimitrios Savva (Photography), Rico Cilliers (Processing)",
|
|
120
|
+
"license": "CC0",
|
|
121
|
+
"map": "nor_gl",
|
|
122
|
+
"file": "rock_boulder_dry/rock_boulder_dry_nor_gl_512.jpg",
|
|
123
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/rock_boulder_dry/rock_boulder_dry_nor_gl_1k.jpg",
|
|
124
|
+
"bytes": 60524,
|
|
125
|
+
"dimensions": "512x512",
|
|
126
|
+
"colourSpace": "linear",
|
|
127
|
+
"metresPerTile": null,
|
|
128
|
+
"groundLayer": null,
|
|
129
|
+
"sampledByTemperateGround": false,
|
|
130
|
+
"sha256": "5039f885b242fdb9f4b15b1cde8d09dca53ec50d37544ffb72154505ba2fc136"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"set": "kloofendal_48d_partly_cloudy",
|
|
134
|
+
"asset": "Kloofendal 48d Partly Cloudy",
|
|
135
|
+
"author": "Greg Zaal",
|
|
136
|
+
"license": "CC0",
|
|
137
|
+
"map": "hdri",
|
|
138
|
+
"file": "hdri/kloofendal_48d_partly_cloudy_1k.hdr",
|
|
139
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/HDRIs/hdr/1k/kloofendal_48d_partly_cloudy_1k.hdr",
|
|
140
|
+
"bytes": 1637206,
|
|
141
|
+
"dimensions": "1024x512",
|
|
142
|
+
"colourSpace": "linear",
|
|
143
|
+
"sha256": "5477b7dbb2aea4a6947cb36b96339c119f90bf36a03b039af3254b5e6a22896d"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"prepared": {
|
|
147
|
+
"assets": [
|
|
148
|
+
{
|
|
149
|
+
"asset": "Boulder 01",
|
|
150
|
+
"authors": "Rob Tuytel",
|
|
151
|
+
"license": "CC0",
|
|
152
|
+
"url": "https://polyhaven.com/a/boulder_01",
|
|
153
|
+
"note": "A second source, so a meadow's stones are not one rock copied."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"asset": "Boulder 01",
|
|
157
|
+
"authors": "Poly Haven",
|
|
158
|
+
"license": "CC0",
|
|
159
|
+
"url": "https://polyhaven.com/a/boulder_01",
|
|
160
|
+
"note": "Authored LOD1 (33,060 tris) and LOD2 (16,530 tris) with base, normal and roughness maps, exported by examples/strata-terrain-preview/scripts/prep-polyhaven-rock.py; the forest starter kit's boulder."
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"recipe": {
|
|
4
|
+
"version": 1,
|
|
5
|
+
"config": {
|
|
6
|
+
"size": 512,
|
|
7
|
+
"resolution": 257,
|
|
8
|
+
"seed": 97
|
|
9
|
+
},
|
|
10
|
+
"layers": [
|
|
11
|
+
{
|
|
12
|
+
"enabled": true,
|
|
13
|
+
"opacity": 1,
|
|
14
|
+
"id": "usgs-3dep",
|
|
15
|
+
"type": "heightmap",
|
|
16
|
+
"params": {
|
|
17
|
+
"data": {
|
|
18
|
+
"width": 257,
|
|
19
|
+
"height": 257,
|
|
20
|
+
"raw16": "heightmap.r16",
|
|
21
|
+
"min": 1.2,
|
|
22
|
+
"max": 6554.7
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"enabled": true,
|
|
28
|
+
"opacity": 1,
|
|
29
|
+
"id": "surface-runoff",
|
|
30
|
+
"type": "erode",
|
|
31
|
+
"params": {
|
|
32
|
+
"method": "hydraulic",
|
|
33
|
+
"droplets": 20000,
|
|
34
|
+
"maxSteps": 45,
|
|
35
|
+
"capacity": 2,
|
|
36
|
+
"erosion": 0.015,
|
|
37
|
+
"strength": 0.002,
|
|
38
|
+
"deposition": 0.2,
|
|
39
|
+
"evaporation": 0.035
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"enabled": true,
|
|
44
|
+
"opacity": 1,
|
|
45
|
+
"id": "loose-talus",
|
|
46
|
+
"type": "erode",
|
|
47
|
+
"params": {
|
|
48
|
+
"method": "thermal",
|
|
49
|
+
"talus": 60,
|
|
50
|
+
"iterations": 1,
|
|
51
|
+
"rate": 0.004
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"enabled": true,
|
|
56
|
+
"opacity": 1,
|
|
57
|
+
"id": "surfaces",
|
|
58
|
+
"type": "materials",
|
|
59
|
+
"params": {
|
|
60
|
+
"rules": [
|
|
61
|
+
{
|
|
62
|
+
"material": "sand",
|
|
63
|
+
"mask": {
|
|
64
|
+
"type": "all"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"material": "dirt",
|
|
69
|
+
"mask": {
|
|
70
|
+
"type": "noise",
|
|
71
|
+
"scale": 40,
|
|
72
|
+
"threshold": 0.7,
|
|
73
|
+
"seed": 97,
|
|
74
|
+
"fade": 0.2
|
|
75
|
+
},
|
|
76
|
+
"strength": 0.25
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"material": "rock",
|
|
80
|
+
"mask": {
|
|
81
|
+
"type": "slope",
|
|
82
|
+
"min": 28,
|
|
83
|
+
"max": 90,
|
|
84
|
+
"fade": 8
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"enabled": true,
|
|
92
|
+
"opacity": 1,
|
|
93
|
+
"id": "scrub",
|
|
94
|
+
"type": "scatter",
|
|
95
|
+
"params": {
|
|
96
|
+
"asset": "boulder",
|
|
97
|
+
"count": 140,
|
|
98
|
+
"minDistance": 5,
|
|
99
|
+
"maxSlope": 25,
|
|
100
|
+
"scale": [
|
|
101
|
+
0.7,
|
|
102
|
+
1.3
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"base": {
|
|
3
|
+
"id": "sand",
|
|
4
|
+
"tile": 3.4,
|
|
5
|
+
"tint": [1, 1, 1],
|
|
6
|
+
"normal": true,
|
|
7
|
+
"triplanar": false
|
|
8
|
+
},
|
|
9
|
+
"breakup": {
|
|
10
|
+
"scale": 0.05,
|
|
11
|
+
"push": 0.12
|
|
12
|
+
},
|
|
13
|
+
"macro": {
|
|
14
|
+
"scale": 0.006,
|
|
15
|
+
"min": 0.75,
|
|
16
|
+
"max": 1.1
|
|
17
|
+
},
|
|
18
|
+
"layers": [
|
|
19
|
+
{
|
|
20
|
+
"id": "dirt",
|
|
21
|
+
"tile": 3.4,
|
|
22
|
+
"tint": [0.8, 0.72, 0.62],
|
|
23
|
+
"normal": true,
|
|
24
|
+
"mask": "dirt",
|
|
25
|
+
"lo": 0.45,
|
|
26
|
+
"hi": 0.85
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "rock",
|
|
30
|
+
"tile": 3.8,
|
|
31
|
+
"tint": [1, 1, 1],
|
|
32
|
+
"normal": true,
|
|
33
|
+
"triplanar": true,
|
|
34
|
+
"mask": "rock",
|
|
35
|
+
"lo": 0.25,
|
|
36
|
+
"hi": 0.75
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"textures": "textures",
|
|
40
|
+
"sources": {
|
|
41
|
+
"sand": {
|
|
42
|
+
"diff": "sand_01/sand_01_diff_1k.jpg",
|
|
43
|
+
"nrm": "sand_01/sand_01_nor_gl_1k.jpg"
|
|
44
|
+
},
|
|
45
|
+
"dirt": {
|
|
46
|
+
"diff": "forest_ground_04/forest_ground_04_diff_1k.jpg",
|
|
47
|
+
"nrm": "forest_ground_04/forest_ground_04_nor_gl_1k.jpg"
|
|
48
|
+
},
|
|
49
|
+
"rock": {
|
|
50
|
+
"diff": "rock_boulder_dry/rock_boulder_dry_diff_512.jpg",
|
|
51
|
+
"nrm": "rock_boulder_dry/rock_boulder_dry_nor_gl_512.jpg"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fir": {
|
|
3
|
+
"near": "fir_tree_01/fir-b-lod1.glb",
|
|
4
|
+
"maxDistance": 600,
|
|
5
|
+
"bounds": {
|
|
6
|
+
"min": [-2.869, 0, -3.619],
|
|
7
|
+
"max": [2.763, 14.078, 2.465]
|
|
8
|
+
},
|
|
9
|
+
"mid": "fir_tree_01/fir-b-lod2.glb",
|
|
10
|
+
"midDistance": 45,
|
|
11
|
+
"tree": true
|
|
12
|
+
},
|
|
13
|
+
"boulder": {
|
|
14
|
+
"near": "boulder_01/boulder-near.glb",
|
|
15
|
+
"mid": "boulder_01/boulder-mid.glb",
|
|
16
|
+
"midDistance": 35,
|
|
17
|
+
"maxDistance": 300,
|
|
18
|
+
"bounds": {
|
|
19
|
+
"min": [-0.716, 0, -0.991],
|
|
20
|
+
"max": [0.557, 1.004, 0.841]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"fir-c": {
|
|
24
|
+
"near": "fir_tree_01/fir-c-lod1.glb",
|
|
25
|
+
"maxDistance": 600,
|
|
26
|
+
"bounds": {
|
|
27
|
+
"min": [-2.727, 0, -3.498],
|
|
28
|
+
"max": [3.623, 14.552, 2.508]
|
|
29
|
+
},
|
|
30
|
+
"mid": "fir_tree_01/fir-c-lod2.glb",
|
|
31
|
+
"midDistance": 45
|
|
32
|
+
},
|
|
33
|
+
"fern-a": {
|
|
34
|
+
"near": "fern_02/fern-a.glb",
|
|
35
|
+
"maxDistance": 50,
|
|
36
|
+
"bounds": {
|
|
37
|
+
"min": [-0.699, 0, -0.744],
|
|
38
|
+
"max": [0.764, 0.62, 0.802]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"fern-b": {
|
|
42
|
+
"near": "fern_02/fern-b.glb",
|
|
43
|
+
"maxDistance": 50,
|
|
44
|
+
"bounds": {
|
|
45
|
+
"min": [-0.758, 0, -0.879],
|
|
46
|
+
"max": [0.655, 0.687, 0.643]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"boulder-small-a": {
|
|
50
|
+
"near": "rock_moss_set_01/pebble-a.glb",
|
|
51
|
+
"maxDistance": 80,
|
|
52
|
+
"bounds": {
|
|
53
|
+
"min": [-1.029, 0, -1.712],
|
|
54
|
+
"max": [1.137, 1.462, 1.683]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"boulder-small-b": {
|
|
58
|
+
"near": "rock_moss_set_01/pebble-b.glb",
|
|
59
|
+
"maxDistance": 80,
|
|
60
|
+
"bounds": {
|
|
61
|
+
"min": [-0.955, 0, -0.784],
|
|
62
|
+
"max": [1.128, 1.736, 1.09]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Run with [--assets <dir>] [--out <dir>]; defaults to installed assets and ./world.
|
|
2
|
+
import { cookTerrainWorld } from "@threenative/assets";
|
|
3
|
+
import { bakeKit } from "@threenative/terrain/kit";
|
|
4
|
+
|
|
5
|
+
await bakeKit(import.meta.url, {
|
|
6
|
+
sky: "hdri/kloofendal_48d_partly_cloudy_1k.hdr",
|
|
7
|
+
cookTerrainWorld,
|
|
8
|
+
});
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"kit": "forest",
|
|
4
|
+
"purpose": "Credits for the sets, textures, props and sky this kit cites. Each record is copied from starter-assets/credits.json.",
|
|
5
|
+
"source": "Poly Haven",
|
|
6
|
+
"sourceUrl": "https://polyhaven.com",
|
|
7
|
+
"license": "CC0 1.0 Universal (public domain dedication)",
|
|
8
|
+
"licenseUrl": "https://polyhaven.com/license",
|
|
9
|
+
"sets": {
|
|
10
|
+
"leafy_grass": {
|
|
11
|
+
"asset": "Leafy Grass",
|
|
12
|
+
"author": "Charlotte Baglioni",
|
|
13
|
+
"license": "CC0",
|
|
14
|
+
"groundLayer": "grass",
|
|
15
|
+
"metresPerTile": 2.6,
|
|
16
|
+
"note": null
|
|
17
|
+
},
|
|
18
|
+
"forest_ground_04": {
|
|
19
|
+
"asset": "Forest Ground 04",
|
|
20
|
+
"author": "Rob Tuytel, Rico Cilliers",
|
|
21
|
+
"license": "CC0",
|
|
22
|
+
"groundLayer": "dirt",
|
|
23
|
+
"metresPerTile": 3.4,
|
|
24
|
+
"note": null
|
|
25
|
+
},
|
|
26
|
+
"rock_boulder_dry": {
|
|
27
|
+
"asset": "Rock Boulder Dry",
|
|
28
|
+
"author": "Dimitrios Savva (Photography), Rico Cilliers (Processing)",
|
|
29
|
+
"license": "CC0",
|
|
30
|
+
"groundLayer": null,
|
|
31
|
+
"metresPerTile": null,
|
|
32
|
+
"note": "The dry grey granite-ish boulder set. Its 1K diffuse is tileable stone, not an atlas: the seam column differs from the last by 5.7 grey levels against an interior neighbour difference of 7.5, so it wraps as well as the map averages."
|
|
33
|
+
},
|
|
34
|
+
"mossy_rock": {
|
|
35
|
+
"asset": "Mossy Rock",
|
|
36
|
+
"author": "Poly Haven / Dario Barresi",
|
|
37
|
+
"license": "CC0",
|
|
38
|
+
"groundLayer": "moss",
|
|
39
|
+
"metresPerTile": 3.6,
|
|
40
|
+
"note": "Substituted for the shortlist's Rock Moss Set 02: that set's 1K diffuse is an atlas of seven rocks over black unused cells with starburst edges, not a tileable ground map. Mossy Rock (CC0, Poly Haven) is tileable, mossy and stony."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
{
|
|
45
|
+
"set": "leafy_grass",
|
|
46
|
+
"asset": "Leafy Grass",
|
|
47
|
+
"author": "Charlotte Baglioni",
|
|
48
|
+
"license": "CC0",
|
|
49
|
+
"map": "diff",
|
|
50
|
+
"file": "leafy_grass/leafy_grass_diff_1k.jpg",
|
|
51
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/leafy_grass/leafy_grass_diff_1k.jpg",
|
|
52
|
+
"bytes": 1195394,
|
|
53
|
+
"dimensions": "1024x1024",
|
|
54
|
+
"colourSpace": "srgb",
|
|
55
|
+
"metresPerTile": 2.6,
|
|
56
|
+
"groundLayer": "grass",
|
|
57
|
+
"sampledByTemperateGround": true,
|
|
58
|
+
"sha256": "cfa40bc9d9417d1852db8753a8d5917f110c40101179f63543c382e39bc05e4a"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"set": "leafy_grass",
|
|
62
|
+
"asset": "Leafy Grass",
|
|
63
|
+
"author": "Charlotte Baglioni",
|
|
64
|
+
"license": "CC0",
|
|
65
|
+
"map": "nor_gl",
|
|
66
|
+
"file": "leafy_grass/leafy_grass_nor_gl_1k.jpg",
|
|
67
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/leafy_grass/leafy_grass_nor_gl_1k.jpg",
|
|
68
|
+
"bytes": 1466049,
|
|
69
|
+
"dimensions": "1024x1024",
|
|
70
|
+
"colourSpace": "linear",
|
|
71
|
+
"metresPerTile": 2.6,
|
|
72
|
+
"groundLayer": "grass",
|
|
73
|
+
"sampledByTemperateGround": true,
|
|
74
|
+
"sha256": "832328216adc0a7e1f70a31d5ee48c9ab7f2152d83816122736cf42ac4b2ebd6"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"set": "forest_ground_04",
|
|
78
|
+
"asset": "Forest Ground 04",
|
|
79
|
+
"author": "Rob Tuytel, Rico Cilliers",
|
|
80
|
+
"license": "CC0",
|
|
81
|
+
"map": "diff",
|
|
82
|
+
"file": "forest_ground_04/forest_ground_04_diff_1k.jpg",
|
|
83
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/forest_ground_04/forest_ground_04_diff_1k.jpg",
|
|
84
|
+
"bytes": 1113899,
|
|
85
|
+
"dimensions": "1024x1024",
|
|
86
|
+
"colourSpace": "srgb",
|
|
87
|
+
"metresPerTile": 3.4,
|
|
88
|
+
"groundLayer": "dirt",
|
|
89
|
+
"sampledByTemperateGround": true,
|
|
90
|
+
"sha256": "50a4dda30875020c64385261aa7e00e2155b592302fa6794165f58fae73cbd2c"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"set": "forest_ground_04",
|
|
94
|
+
"asset": "Forest Ground 04",
|
|
95
|
+
"author": "Rob Tuytel, Rico Cilliers",
|
|
96
|
+
"license": "CC0",
|
|
97
|
+
"map": "nor_gl",
|
|
98
|
+
"file": "forest_ground_04/forest_ground_04_nor_gl_1k.jpg",
|
|
99
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/forest_ground_04/forest_ground_04_nor_gl_1k.jpg",
|
|
100
|
+
"bytes": 1326812,
|
|
101
|
+
"dimensions": "1024x1024",
|
|
102
|
+
"colourSpace": "linear",
|
|
103
|
+
"metresPerTile": 3.4,
|
|
104
|
+
"groundLayer": "dirt",
|
|
105
|
+
"sampledByTemperateGround": true,
|
|
106
|
+
"sha256": "9c3a0200e02ce40edffbbf9f5f623ef08ea9b1b7812b556182ec978f88887151"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"set": "rock_boulder_dry",
|
|
110
|
+
"asset": "Rock Boulder Dry",
|
|
111
|
+
"author": "Dimitrios Savva (Photography), Rico Cilliers (Processing)",
|
|
112
|
+
"license": "CC0",
|
|
113
|
+
"map": "diff",
|
|
114
|
+
"file": "rock_boulder_dry/rock_boulder_dry_diff_512.jpg",
|
|
115
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/rock_boulder_dry/rock_boulder_dry_diff_1k.jpg",
|
|
116
|
+
"bytes": 87707,
|
|
117
|
+
"dimensions": "512x512",
|
|
118
|
+
"colourSpace": "srgb",
|
|
119
|
+
"metresPerTile": null,
|
|
120
|
+
"groundLayer": null,
|
|
121
|
+
"sampledByTemperateGround": false,
|
|
122
|
+
"sha256": "dde5d4cf88dce2a3bcde0490c509f0a5f375c4aa002aa08f96afa6e0fb4f6c7b"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"set": "rock_boulder_dry",
|
|
126
|
+
"asset": "Rock Boulder Dry",
|
|
127
|
+
"author": "Dimitrios Savva (Photography), Rico Cilliers (Processing)",
|
|
128
|
+
"license": "CC0",
|
|
129
|
+
"map": "nor_gl",
|
|
130
|
+
"file": "rock_boulder_dry/rock_boulder_dry_nor_gl_512.jpg",
|
|
131
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/rock_boulder_dry/rock_boulder_dry_nor_gl_1k.jpg",
|
|
132
|
+
"bytes": 60524,
|
|
133
|
+
"dimensions": "512x512",
|
|
134
|
+
"colourSpace": "linear",
|
|
135
|
+
"metresPerTile": null,
|
|
136
|
+
"groundLayer": null,
|
|
137
|
+
"sampledByTemperateGround": false,
|
|
138
|
+
"sha256": "5039f885b242fdb9f4b15b1cde8d09dca53ec50d37544ffb72154505ba2fc136"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"set": "mossy_rock",
|
|
142
|
+
"asset": "Mossy Rock",
|
|
143
|
+
"author": "Poly Haven / Dario Barresi",
|
|
144
|
+
"license": "CC0",
|
|
145
|
+
"map": "diff",
|
|
146
|
+
"file": "mossy_rock/mossy_rock_diff_1k.jpg",
|
|
147
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/mossy_rock/mossy_rock_diff_1k.jpg",
|
|
148
|
+
"bytes": 1124438,
|
|
149
|
+
"dimensions": "1024x1024",
|
|
150
|
+
"colourSpace": "srgb",
|
|
151
|
+
"metresPerTile": 3.6,
|
|
152
|
+
"groundLayer": "moss",
|
|
153
|
+
"sampledByTemperateGround": true,
|
|
154
|
+
"sha256": "4dbf37f1b0465c9c8914213163923be159716f5b97fb6946437b6c5e143ef540"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"set": "mossy_rock",
|
|
158
|
+
"asset": "Mossy Rock",
|
|
159
|
+
"author": "Poly Haven / Dario Barresi",
|
|
160
|
+
"license": "CC0",
|
|
161
|
+
"map": "nor_gl",
|
|
162
|
+
"file": "mossy_rock/mossy_rock_nor_gl_1k.jpg",
|
|
163
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/Textures/jpg/1k/mossy_rock/mossy_rock_nor_gl_1k.jpg",
|
|
164
|
+
"bytes": 995727,
|
|
165
|
+
"dimensions": "1024x1024",
|
|
166
|
+
"colourSpace": "linear",
|
|
167
|
+
"metresPerTile": 3.6,
|
|
168
|
+
"groundLayer": "moss",
|
|
169
|
+
"sampledByTemperateGround": true,
|
|
170
|
+
"sha256": "232cdd6a9fdfd01bb8bb1f8f604c53dbca79fa0d3d7995edf85c9945757aa8df"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"set": "kloofendal_48d_partly_cloudy",
|
|
174
|
+
"asset": "Kloofendal 48d Partly Cloudy",
|
|
175
|
+
"author": "Greg Zaal",
|
|
176
|
+
"license": "CC0",
|
|
177
|
+
"map": "hdri",
|
|
178
|
+
"file": "hdri/kloofendal_48d_partly_cloudy_1k.hdr",
|
|
179
|
+
"url": "https://dl.polyhaven.org/file/ph-assets/HDRIs/hdr/1k/kloofendal_48d_partly_cloudy_1k.hdr",
|
|
180
|
+
"bytes": 1637206,
|
|
181
|
+
"dimensions": "1024x512",
|
|
182
|
+
"colourSpace": "linear",
|
|
183
|
+
"sha256": "5477b7dbb2aea4a6947cb36b96339c119f90bf36a03b039af3254b5e6a22896d"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"prepared": {
|
|
187
|
+
"assets": [
|
|
188
|
+
{
|
|
189
|
+
"asset": "Fir Tree 01",
|
|
190
|
+
"authors": "Rob Tuytel, Rico Cilliers",
|
|
191
|
+
"license": "CC0",
|
|
192
|
+
"url": "https://polyhaven.com/a/fir_tree_01",
|
|
193
|
+
"note": "Poly Haven's own authored LOD2 of tree b (fir_tree_01_b_LOD2, 54,927 triangles, full crown), exported by examples/strata-terrain-preview/scripts/prep-polyhaven-fir.py from the 1k .blend; the forest starter kit's fir."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"asset": "Boulder 01",
|
|
197
|
+
"authors": "Rob Tuytel",
|
|
198
|
+
"license": "CC0",
|
|
199
|
+
"url": "https://polyhaven.com/a/boulder_01",
|
|
200
|
+
"note": "A second source, so a meadow's stones are not one rock copied."
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"asset": "Boulder 01",
|
|
204
|
+
"authors": "Poly Haven",
|
|
205
|
+
"license": "CC0",
|
|
206
|
+
"url": "https://polyhaven.com/a/boulder_01",
|
|
207
|
+
"note": "Authored LOD1 (33,060 tris) and LOD2 (16,530 tris) with base, normal and roughness maps, exported by examples/strata-terrain-preview/scripts/prep-polyhaven-rock.py; the forest starter kit's boulder."
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"asset": "Fern 02",
|
|
211
|
+
"authors": "Rob Tuytel, Rico Cilliers",
|
|
212
|
+
"license": "CC0",
|
|
213
|
+
"url": "https://polyhaven.com/a/fern_02",
|
|
214
|
+
"note": "fern-a and fern-b: crossed-arch alpha cards cut from the fern_02 alpha and diffuse maps, built by packages/terrain/scripts/bake-ground-cover.py."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"asset": "Rock Moss Set 01",
|
|
218
|
+
"authors": "Rob Tuytel, Rico Cilliers",
|
|
219
|
+
"license": "CC0",
|
|
220
|
+
"url": "https://polyhaven.com/a/rock_moss_set_01",
|
|
221
|
+
"note": "rock01 and rock04, both levels. Shaded by the starter's own mossy_rock set, triplanar. pebble-a and pebble-b: the rock01 and rock04 mid levels with a flat grey material, by packages/terrain/scripts/bake-ground-cover.py."
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
}
|
|
Binary file
|