create-threenative 0.2.18 → 0.2.21
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/references/assertion-reference.md +1 -1
- package/agent-docs/references/capability-reference.md +792 -5
- package/agent-docs/references/kit-racing.md +4 -2
- package/agent-docs/references/performance-basics.md +2 -1
- package/agent-docs/references/terrain-authoring.md +25 -7
- package/agent-files/.agents/skills/prd-creator/SKILL.md +24 -0
- package/dist/index.js +268 -237
- package/dist/quality.d.ts +5 -1
- package/dist/quality.js +75 -6
- package/dist/terrain-kit.js +1 -1
- package/dist/threenative.js +7 -5
- package/dist/web-engine-post-effects.js +6 -0
- package/dist/web-engine-runtime.js +407 -38
- package/package.json +6 -6
- package/template-assets/assets/floor-fern-0.glb +0 -0
- package/template-assets/assets/floor-litter-0.glb +0 -0
- package/template-assets/assets/floor-log-0.glb +0 -0
- package/template-assets/assets/floor-log-1.glb +0 -0
- package/template-assets/assets/floor-stump-0.glb +0 -0
- package/template-assets/assets/floor-twig-0.glb +0 -0
- package/template-assets/patches/three@0.187.0.patch +108 -21
- package/template-assets/quality/eslint.config.js +1 -1
- package/templates/action-rpg/package.json +7 -7
- package/templates/action-rpg/src/loot/drops.ts +3 -7
- package/templates/action-rpg/src/render/camera.ts +2 -2
- package/templates/action-rpg/src/render/clouds.ts +3 -1
- package/templates/action-rpg/src/render/materials.ts +3 -2
- package/templates/action-rpg/src/render/touch-controls.ts +7 -6
- package/templates/action-rpg/src/scenes/Play.ts +1 -15
- package/templates/adventure/AGENTS.md +3 -3
- package/templates/adventure/CLAUDE.md +3 -3
- package/templates/adventure/native-playtests/survives.playtest.json +12 -0
- package/templates/adventure/native-playtests/woodland-floor.playtest.json +61 -0
- package/templates/adventure/package.json +7 -7
- package/templates/adventure/playtests/grass.playtest.json +61 -0
- package/templates/adventure/playtests/performance.playtest.json +1 -1
- package/templates/adventure/playtests/survives.playtest.json +2 -2
- package/templates/adventure/playtests/woodland-floor.playtest.json +61 -0
- package/templates/adventure/src/entities/LockOn.ts +42 -4
- package/templates/adventure/src/entities/Warden.ts +12 -3
- package/templates/adventure/src/level/Vale.ts +241 -16
- package/templates/adventure/src/render/camera.ts +2 -2
- package/templates/adventure/src/render/foliage.ts +64 -20
- package/templates/adventure/src/render/grass.ts +325 -0
- package/templates/adventure/src/render/materials.ts +3 -2
- package/templates/adventure/src/render/palette.ts +3 -0
- package/templates/adventure/src/render/touch-controls.ts +4 -1
- package/templates/adventure/src/scenes/Play.ts +96 -1
- package/templates/collectathon/package.json +7 -7
- package/templates/collectathon/src/level/Course.ts +2 -7
- package/templates/collectathon/src/level/terrain.ts +2 -1
- package/templates/collectathon/src/render/camera.ts +2 -2
- package/templates/collectathon/src/render/ground.ts +4 -4
- package/templates/collectathon/src/render/hero.ts +1 -1
- package/templates/collectathon/src/render/materials.ts +0 -1
- package/templates/collectathon/src/render/sky.ts +4 -3
- package/templates/kart/package.json +6 -6
- package/templates/kart/src/entities/Kart.ts +2 -1
- package/templates/kart/src/render/course.ts +2 -1
- package/templates/kart/src/track/Course.ts +3 -1
- package/templates/minimal/package.json +6 -6
- package/templates/minimal/src/render/camera.ts +2 -2
- package/templates/minimal/src/render/clouds.ts +3 -1
- package/templates/minimal/src/render/materials.ts +3 -2
- package/templates/minimal/src/render/touch-controls.ts +7 -6
- package/templates/platformer/package.json +7 -7
- package/templates/platformer/playtests/collect.playtest.json +4 -1
- package/templates/platformer/src/level/Stage.ts +2 -6
- package/templates/platformer/src/scenes/Play.ts +2 -1
- package/templates/puzzle/package.json +7 -7
- package/templates/puzzle/src/entities/Warden.ts +3 -3
- package/templates/puzzle/src/render/camera.ts +2 -2
- package/templates/puzzle/src/render/touch-controls.ts +7 -6
- package/templates/racing/AGENTS.md +2 -2
- package/templates/racing/CLAUDE.md +2 -2
- package/templates/racing/CREDITS.md +29 -0
- package/templates/racing/assets/engine-loop.wav +0 -0
- package/templates/racing/assets/grass/Grass004_color.jpg +0 -0
- package/templates/racing/assets/grass/Grass004_normal.jpg +0 -0
- package/templates/racing/assets/grass/Grass004_roughness.jpg +0 -0
- package/templates/racing/assets/nitro-burst.wav +0 -0
- package/templates/racing/assets/tyre-squeal.wav +0 -0
- package/templates/racing/package.json +7 -7
- package/templates/racing/playtests/drift-natural.playtest.json +68 -0
- package/templates/racing/playtests/drift.playtest.json +100 -0
- package/templates/racing/playtests/hud.playtest.json +117 -0
- package/templates/racing/playtests/launch-pose.playtest.json +34 -0
- package/templates/racing/playtests/nitro.playtest.json +158 -0
- package/templates/racing/playtests/outcome.playtest.json +4 -4
- package/templates/racing/playtests/performance.playtest.json +1 -1
- package/templates/racing/playtests/steady-camera.playtest.json +88 -0
- package/templates/racing/src/audio/engine.ts +138 -0
- package/templates/racing/src/entities/CarBody.ts +83 -10
- package/templates/racing/src/entities/Drift.ts +243 -0
- package/templates/racing/src/entities/LineDriver.ts +2 -2
- package/templates/racing/src/entities/Nitro.ts +72 -0
- package/templates/racing/src/entities/RacingCar.ts +86 -21
- package/templates/racing/src/entities/Rival.ts +35 -21
- package/templates/racing/src/game.ts +6 -0
- package/templates/racing/src/gauges.ts +74 -0
- package/templates/racing/src/render/camera.ts +29 -4
- package/templates/racing/src/render/clouds.ts +3 -1
- package/templates/racing/src/render/effects.ts +244 -0
- package/templates/racing/src/render/materials.ts +43 -8
- package/templates/racing/src/render/shapes.ts +37 -0
- package/templates/racing/src/render/skids.ts +84 -0
- package/templates/racing/src/render/touch-controls.ts +10 -10
- package/templates/racing/src/scenes/Race.ts +277 -25
- package/templates/racing/src/state.ts +35 -0
- package/templates/racing/src/style.css +3 -0
- package/templates/racing/src/track/Ranking.ts +8 -4
- package/templates/racing/src/track/Track.ts +132 -58
- package/templates/racing/src/track/TrackSector.ts +19 -1
- package/templates/racing/src/track/circuit.ts +21 -15
- package/templates/racing/src/ui/GameUi.tsx +0 -2
- package/templates/racing/src/ui/Hud.tsx +417 -50
- package/templates/racing/threenative.config.ts +15 -0
- package/templates/racing/tools/make-racing-audio.mjs +388 -0
- package/templates/rain/package.json +6 -6
- package/templates/rain/src/render/noise-volume.ts +2 -1
- package/templates/rain/src/state.ts +3 -1
- package/templates/rain/src/ui/GameUi.tsx +1 -1
- package/templates/rain/src/ui/automation.ts +10 -8
- package/templates/rain/src/ui/tempest.ts +3 -4
- package/templates/rts/package.json +6 -6
- package/templates/rts/src/sim/terrain.ts +1 -0
- package/templates/rts/src/sim/types.ts +1 -0
- package/templates/runner/package.json +7 -7
- package/templates/runner/src/render/clouds.ts +3 -1
- package/templates/runner/src/render/materials.ts +3 -2
- package/templates/runner/src/render/touch-controls.ts +7 -6
- package/templates/runner/src/scenes/Run.ts +4 -9
- package/templates/sailing/package.json +7 -7
- package/templates/sailing/src/render/touch-controls.ts +7 -6
- package/templates/shooter/package.json +7 -7
- package/templates/shooter/src/render/clouds.ts +3 -1
- package/templates/snow/package.json +7 -7
- package/templates/snow/src/entities/Explorer.ts +6 -12
- package/templates/snow/src/render/bootPrint.ts +3 -1
- package/templates/snow/src/render/camera.ts +3 -2
- package/templates/snow/src/render/scenery.ts +3 -3
- package/templates/snow/src/render/touch-controls.ts +7 -6
- package/templates/snow/src/render/weather.ts +3 -5
- package/templates/snow/src/terrain.ts +2 -1
- package/templates/starter/native-playtests/render-chain.playtest.json +9 -9
- package/templates/starter/package.json +7 -7
- package/templates/starter/src/entities/Player.ts +10 -2
- package/templates/starter/src/render/camera.ts +2 -2
- package/templates/starter/src/render/clouds.ts +3 -1
- package/templates/starter/src/render/materials.ts +3 -2
- package/templates/starter/src/render/touch-controls.ts +7 -6
- package/templates/starter/src/scenes/Play.ts +1 -14
- package/templates/tower-defense/package.json +7 -7
- package/templates/tower-defense/src/render/shapes.ts +1 -2
- package/templates/tower-defense/src/scenes/Battle.ts +3 -8
- package/template-assets/terrain/alpine/assets.json +0 -12
- package/template-assets/terrain/alpine/bake.mjs +0 -6
- package/template-assets/terrain/alpine/credits.json +0 -164
- package/template-assets/terrain/alpine/heightmap.r16 +0 -0
- package/template-assets/terrain/alpine/recipe.json +0 -119
- package/template-assets/terrain/alpine/surface.json +0 -53
- package/template-assets/terrain/coastal/assets.json +0 -11
- package/template-assets/terrain/coastal/bake.mjs +0 -6
- package/template-assets/terrain/coastal/credits.json +0 -117
- package/template-assets/terrain/coastal/heightmap.r16 +0 -0
- package/template-assets/terrain/coastal/recipe.json +0 -113
- package/template-assets/terrain/coastal/surface.json +0 -41
- package/template-assets/terrain/desert/assets.json +0 -12
- package/template-assets/terrain/desert/bake.mjs +0 -6
- package/template-assets/terrain/desert/credits.json +0 -164
- package/template-assets/terrain/desert/heightmap.r16 +0 -0
- package/template-assets/terrain/desert/recipe.json +0 -108
- package/template-assets/terrain/desert/surface.json +0 -54
- package/template-assets/terrain/forest/assets.json +0 -65
- package/template-assets/terrain/forest/bake.mjs +0 -8
- package/template-assets/terrain/forest/credits.json +0 -225
- package/template-assets/terrain/forest/heightmap.r16 +0 -0
- package/template-assets/terrain/forest/recipe.json +0 -350
- package/template-assets/terrain/forest/surface.json +0 -79
- package/template-assets/terrain/tundra/assets.json +0 -12
- package/template-assets/terrain/tundra/bake.mjs +0 -6
- package/template-assets/terrain/tundra/credits.json +0 -164
- package/template-assets/terrain/tundra/heightmap.r16 +0 -0
- package/template-assets/terrain/tundra/recipe.json +0 -277
- package/template-assets/terrain/tundra/surface.json +0 -54
- package/templates/racing/src/ui/Menu.tsx +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-threenative",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Scaffold a readable ThreeNative game project.",
|
|
6
6
|
"keywords": [
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
"@typescript-eslint/parser": "8.72.0",
|
|
96
96
|
"@typescript-eslint/eslint-plugin": "8.72.0",
|
|
97
97
|
"@types/estree": "1.0.8",
|
|
98
|
-
"@threenative/assets": "0.3.
|
|
99
|
-
"@threenative/
|
|
100
|
-
"@threenative/
|
|
101
|
-
"@threenative/
|
|
98
|
+
"@threenative/assets": "0.3.17",
|
|
99
|
+
"@threenative/physics": "0.3.16",
|
|
100
|
+
"@threenative/blender-bridge": "0.2.9",
|
|
101
|
+
"@threenative/core": "0.3.16"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@threenative/assets": ">=0.3.
|
|
104
|
+
"@threenative/assets": ">=0.3.17 <0.4.0"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"build": "tsup --config tsup.config.ts && publint",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1080,7 +1080,7 @@ index 7c8d2322834904c1247c79cda31beff8e2bfc497..b87cf38629b2c52804888a10bda3b814
|
|
|
1080
1080
|
|
|
1081
1081
|
}
|
|
1082
1082
|
diff --git a/build/three.webgpu.js b/build/three.webgpu.js
|
|
1083
|
-
index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..
|
|
1083
|
+
index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..e6d9e39318189f6e555be86f2a57d9467fc1188d 100644
|
|
1084
1084
|
--- a/build/three.webgpu.js
|
|
1085
1085
|
+++ b/build/three.webgpu.js
|
|
1086
1086
|
@@ -5182,7 +5182,7 @@ class Animation {
|
|
@@ -2992,7 +2992,36 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
|
|
|
2992
2992
|
|
|
2993
2993
|
}
|
|
2994
2994
|
|
|
2995
|
-
@@ -
|
|
2995
|
+
@@ -49324,28 +50100,24 @@
|
|
2996
|
+
_viewDescriptor.dimension = GPUTextureViewDimension.TwoD;
|
|
2997
|
+
|
|
2998
|
+
const textureView = textureData.texture.createView( _viewDescriptor );
|
|
2999
|
+
const msaaTexture = textureData.msaaTextures?.[ layer ];
|
|
3000
|
+
textureViews.push( {
|
|
3001
|
+
view: msaaTexture !== undefined ? msaaTexture.createView() : textureView,
|
|
3002
|
+
resolveTarget: msaaTexture !== undefined && renderTarget.resolveColorBuffer === true ? textureView : undefined,
|
|
3003
|
+
depthSlice: undefined
|
|
3004
|
+
} );
|
|
3005
|
+
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
- } else {
|
|
3009
|
+
-
|
|
3010
|
+
- _viewDescriptor.dimension = GPUTextureViewDimension.TwoDArray;
|
|
3011
|
+
-
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
if ( isRenderCameraDepthArray !== true ) {
|
|
3017
|
+
|
|
3018
|
+
const textureView = textureData.texture.createView( _viewDescriptor );
|
|
3019
|
+
|
|
3020
|
+
let view, resolveTarget;
|
|
3021
|
+
|
|
3022
|
+
if ( textureData.msaaTexture !== undefined ) {
|
|
3023
|
+
|
|
3024
|
+
@@ -51001,6 +51773,7 @@ class WebGPUBackend extends Backend {
|
|
2996
3025
|
const utils = this.utils;
|
|
2997
3026
|
|
|
2998
3027
|
const sampleCount = utils.getSampleCountRenderContext( renderObject.context );
|
|
@@ -3000,7 +3029,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
|
|
|
3000
3029
|
const colorSpace = utils.getCurrentColorSpace( renderObject.context );
|
|
3001
3030
|
const colorFormat = utils.getCurrentColorFormat( renderObject.context );
|
|
3002
3031
|
const depthStencilFormat = utils.getCurrentDepthStencilFormat( renderObject.context );
|
|
3003
|
-
@@ -51025,7 +
|
|
3032
|
+
@@ -51025,7 +51798,8 @@ class WebGPUBackend extends Backend {
|
|
3004
3033
|
data.primitiveTopology !== primitiveTopology || data.stripIndexFormat !== stripIndexFormat ||
|
|
3005
3034
|
data.frontFaceCW !== frontFaceCW ||
|
|
3006
3035
|
data.geometryVersion !== renderObject.geometryVersion ||
|
|
@@ -3010,7 +3039,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
|
|
|
3010
3039
|
) {
|
|
3011
3040
|
|
|
3012
3041
|
data.material = material; data.materialVersion = material.version;
|
|
3013
|
-
@@ -51048,6 +
|
|
3042
|
+
@@ -51048,6 +51822,7 @@ class WebGPUBackend extends Backend {
|
|
3014
3043
|
data.frontFaceCW = frontFaceCW;
|
|
3015
3044
|
data.geometryVersion = renderObject.geometryVersion;
|
|
3016
3045
|
data.clippingContextCacheKey = renderObject.clippingContextCacheKey;
|
|
@@ -3018,7 +3047,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
|
|
|
3018
3047
|
|
|
3019
3048
|
needsUpdate = true;
|
|
3020
3049
|
|
|
3021
|
-
@@ -51069,6 +
|
|
3050
|
+
@@ -51069,6 +51844,7 @@ class WebGPUBackend extends Backend {
|
|
3022
3051
|
|
|
3023
3052
|
const utils = this.utils;
|
|
3024
3053
|
const renderContext = renderObject.context;
|
|
@@ -3026,7 +3055,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
|
|
|
3026
3055
|
|
|
3027
3056
|
// meshes with negative scale have a different frontFace render pipeline
|
|
3028
3057
|
// descriptor value so the following must be honored in the cache key
|
|
3029
|
-
@@ -51088,9 +
|
|
3058
|
+
@@ -51088,9 +51864,11 @@ class WebGPUBackend extends Backend {
|
|
3030
3059
|
material.side, material.alphaToCoverage,
|
|
3031
3060
|
frontFaceCW,
|
|
3032
3061
|
utils.getSampleCountRenderContext( renderContext ),
|
|
@@ -3038,7 +3067,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
|
|
|
3038
3067
|
renderObject.clippingContextCacheKey
|
|
3039
3068
|
].join();
|
|
3040
3069
|
|
|
3041
|
-
@@ -51158,6 +
|
|
3070
|
+
@@ -51158,6 +51936,12 @@ class WebGPUBackend extends Backend {
|
|
3042
3071
|
|
|
3043
3072
|
}
|
|
3044
3073
|
|
|
@@ -3052,7 +3081,7 @@ index f8fc49fe7df98cbac4609603a1f2a2c6aea79675..a458a6d75ee95fdb9913222f4ed31c5c
|
|
|
3052
3081
|
* Generates mipmaps for the given texture.
|
|
3053
3082
|
*
|
|
3054
3083
|
diff --git a/build/three.webgpu.nodes.js b/build/three.webgpu.nodes.js
|
|
3055
|
-
index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..
|
|
3084
|
+
index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..40a12e5262477dca5218c1e3396d07223adb673a 100644
|
|
3056
3085
|
--- a/build/three.webgpu.nodes.js
|
|
3057
3086
|
+++ b/build/three.webgpu.nodes.js
|
|
3058
3087
|
@@ -179,6 +179,15 @@ class NodeMaterialObserver {
|
|
@@ -6034,7 +6063,36 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
|
|
|
6034
6063
|
|
|
6035
6064
|
}
|
|
6036
6065
|
|
|
6037
|
-
@@ -
|
|
6066
|
+
@@ -90525,28 +91961,24 @@
|
|
6067
|
+
_viewDescriptor.arrayLayerCount = 1;
|
|
6068
|
+
_viewDescriptor.dimension = GPUTextureViewDimension.TwoD;
|
|
6069
|
+
|
|
6070
|
+
const textureView = textureData.texture.createView( _viewDescriptor );
|
|
6071
|
+
const msaaTexture = textureData.msaaTextures?.[ layer ];
|
|
6072
|
+
textureViews.push( {
|
|
6073
|
+
view: msaaTexture !== undefined ? msaaTexture.createView() : textureView,
|
|
6074
|
+
resolveTarget: msaaTexture !== undefined && renderTarget.resolveColorBuffer === true ? textureView : undefined,
|
|
6075
|
+
depthSlice: undefined
|
|
6076
|
+
} );
|
|
6077
|
+
|
|
6078
|
+
}
|
|
6079
|
+
-
|
|
6080
|
+
- } else {
|
|
6081
|
+
-
|
|
6082
|
+
- _viewDescriptor.dimension = GPUTextureViewDimension.TwoDArray;
|
|
6083
|
+
|
|
6084
|
+
}
|
|
6085
|
+
|
|
6086
|
+
}
|
|
6087
|
+
|
|
6088
|
+
if ( isRenderCameraDepthArray !== true ) {
|
|
6089
|
+
|
|
6090
|
+
const textureView = textureData.texture.createView( _viewDescriptor );
|
|
6091
|
+
|
|
6092
|
+
let view, resolveTarget;
|
|
6093
|
+
|
|
6094
|
+
if ( textureData.msaaTexture !== undefined ) {
|
|
6095
|
+
@@ -92203,6 +93635,7 @@ class WebGPUBackend extends Backend {
|
|
6038
6096
|
const utils = this.utils;
|
|
6039
6097
|
|
|
6040
6098
|
const sampleCount = utils.getSampleCountRenderContext( renderObject.context );
|
|
@@ -6042,7 +6100,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
|
|
|
6042
6100
|
const colorSpace = utils.getCurrentColorSpace( renderObject.context );
|
|
6043
6101
|
const colorFormat = utils.getCurrentColorFormat( renderObject.context );
|
|
6044
6102
|
const depthStencilFormat = utils.getCurrentDepthStencilFormat( renderObject.context );
|
|
6045
|
-
@@ -92227,7 +
|
|
6103
|
+
@@ -92227,7 +93660,8 @@ class WebGPUBackend extends Backend {
|
|
6046
6104
|
data.primitiveTopology !== primitiveTopology || data.stripIndexFormat !== stripIndexFormat ||
|
|
6047
6105
|
data.frontFaceCW !== frontFaceCW ||
|
|
6048
6106
|
data.geometryVersion !== renderObject.geometryVersion ||
|
|
@@ -6052,7 +6110,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
|
|
|
6052
6110
|
) {
|
|
6053
6111
|
|
|
6054
6112
|
data.material = material; data.materialVersion = material.version;
|
|
6055
|
-
@@ -92250,6 +
|
|
6113
|
+
@@ -92250,6 +93684,7 @@ class WebGPUBackend extends Backend {
|
|
6056
6114
|
data.frontFaceCW = frontFaceCW;
|
|
6057
6115
|
data.geometryVersion = renderObject.geometryVersion;
|
|
6058
6116
|
data.clippingContextCacheKey = renderObject.clippingContextCacheKey;
|
|
@@ -6060,7 +6118,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
|
|
|
6060
6118
|
|
|
6061
6119
|
needsUpdate = true;
|
|
6062
6120
|
|
|
6063
|
-
@@ -92271,6 +
|
|
6121
|
+
@@ -92271,6 +93706,7 @@ class WebGPUBackend extends Backend {
|
|
6064
6122
|
|
|
6065
6123
|
const utils = this.utils;
|
|
6066
6124
|
const renderContext = renderObject.context;
|
|
@@ -6068,7 +6126,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
|
|
|
6068
6126
|
|
|
6069
6127
|
// meshes with negative scale have a different frontFace render pipeline
|
|
6070
6128
|
// descriptor value so the following must be honored in the cache key
|
|
6071
|
-
@@ -92290,9 +
|
|
6129
|
+
@@ -92290,9 +93726,11 @@ class WebGPUBackend extends Backend {
|
|
6072
6130
|
material.side, material.alphaToCoverage,
|
|
6073
6131
|
frontFaceCW,
|
|
6074
6132
|
utils.getSampleCountRenderContext( renderContext ),
|
|
@@ -6080,7 +6138,7 @@ index 39c897cb2f5f2092419c2cd4f464a88f1151d7d0..790d97c1247564c7fd3aea2ee54ea0a6
|
|
|
6080
6138
|
renderObject.clippingContextCacheKey
|
|
6081
6139
|
].join();
|
|
6082
6140
|
|
|
6083
|
-
@@ -92360,6 +
|
|
6141
|
+
@@ -92360,6 +93798,12 @@ class WebGPUBackend extends Backend {
|
|
6084
6142
|
|
|
6085
6143
|
}
|
|
6086
6144
|
|
|
@@ -8357,7 +8415,7 @@ index 6f6a362a36b34c0b6cf7e3c93e818586822c6f3e..46f351dc993df997be456adc176b4a1e
|
|
|
8357
8415
|
|
|
8358
8416
|
}
|
|
8359
8417
|
diff --git a/src/renderers/webgpu/WebGPUBackend.js b/src/renderers/webgpu/WebGPUBackend.js
|
|
8360
|
-
index 719d67abe3986ca058794b63a441ce66bedde891..
|
|
8418
|
+
index 719d67abe3986ca058794b63a441ce66bedde891..9eee576d31cc5329ed67eb8e0ccba6f96edca088 100644
|
|
8361
8419
|
--- a/src/renderers/webgpu/WebGPUBackend.js
|
|
8362
8420
|
+++ b/src/renderers/webgpu/WebGPUBackend.js
|
|
8363
8421
|
@@ -106,6 +106,27 @@ class WebGPUBackend extends Backend {
|
|
@@ -8422,7 +8480,36 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
|
|
|
8422
8480
|
|
|
8423
8481
|
}
|
|
8424
8482
|
|
|
8425
|
-
@@ -
|
|
8483
|
+
@@ -736,28 +766,24 @@
|
|
8484
|
+
_viewDescriptor.arrayLayerCount = 1;
|
|
8485
|
+
_viewDescriptor.dimension = GPUTextureViewDimension.TwoD;
|
|
8486
|
+
|
|
8487
|
+
const textureView = textureData.texture.createView( _viewDescriptor );
|
|
8488
|
+
const msaaTexture = textureData.msaaTextures?.[ layer ];
|
|
8489
|
+
textureViews.push( {
|
|
8490
|
+
view: msaaTexture !== undefined ? msaaTexture.createView() : textureView,
|
|
8491
|
+
resolveTarget: msaaTexture !== undefined && renderTarget.resolveColorBuffer === true ? textureView : undefined,
|
|
8492
|
+
depthSlice: undefined
|
|
8493
|
+
} );
|
|
8494
|
+
|
|
8495
|
+
}
|
|
8496
|
+
-
|
|
8497
|
+
- } else {
|
|
8498
|
+
-
|
|
8499
|
+
- _viewDescriptor.dimension = GPUTextureViewDimension.TwoDArray;
|
|
8500
|
+
|
|
8501
|
+
}
|
|
8502
|
+
|
|
8503
|
+
}
|
|
8504
|
+
|
|
8505
|
+
if ( isRenderCameraDepthArray !== true ) {
|
|
8506
|
+
|
|
8507
|
+
const textureView = textureData.texture.createView( _viewDescriptor );
|
|
8508
|
+
|
|
8509
|
+
let view, resolveTarget;
|
|
8510
|
+
|
|
8511
|
+
if ( textureData.msaaTexture !== undefined ) {
|
|
8512
|
+
@@ -2414,6 +2440,7 @@ class WebGPUBackend extends Backend {
|
|
8426
8513
|
const utils = this.utils;
|
|
8427
8514
|
|
|
8428
8515
|
const sampleCount = utils.getSampleCountRenderContext( renderObject.context );
|
|
@@ -8430,7 +8517,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
|
|
|
8430
8517
|
const colorSpace = utils.getCurrentColorSpace( renderObject.context );
|
|
8431
8518
|
const colorFormat = utils.getCurrentColorFormat( renderObject.context );
|
|
8432
8519
|
const depthStencilFormat = utils.getCurrentDepthStencilFormat( renderObject.context );
|
|
8433
|
-
@@ -2438,7 +
|
|
8520
|
+
@@ -2438,7 +2465,8 @@ class WebGPUBackend extends Backend {
|
|
8434
8521
|
data.primitiveTopology !== primitiveTopology || data.stripIndexFormat !== stripIndexFormat ||
|
|
8435
8522
|
data.frontFaceCW !== frontFaceCW ||
|
|
8436
8523
|
data.geometryVersion !== renderObject.geometryVersion ||
|
|
@@ -8440,7 +8527,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
|
|
|
8440
8527
|
) {
|
|
8441
8528
|
|
|
8442
8529
|
data.material = material; data.materialVersion = material.version;
|
|
8443
|
-
@@ -2461,6 +
|
|
8530
|
+
@@ -2461,6 +2489,7 @@ class WebGPUBackend extends Backend {
|
|
8444
8531
|
data.frontFaceCW = frontFaceCW;
|
|
8445
8532
|
data.geometryVersion = renderObject.geometryVersion;
|
|
8446
8533
|
data.clippingContextCacheKey = renderObject.clippingContextCacheKey;
|
|
@@ -8448,7 +8535,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
|
|
|
8448
8535
|
|
|
8449
8536
|
needsUpdate = true;
|
|
8450
8537
|
|
|
8451
|
-
@@ -2482,6 +
|
|
8538
|
+
@@ -2482,6 +2511,7 @@ class WebGPUBackend extends Backend {
|
|
8452
8539
|
|
|
8453
8540
|
const utils = this.utils;
|
|
8454
8541
|
const renderContext = renderObject.context;
|
|
@@ -8456,7 +8543,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
|
|
|
8456
8543
|
|
|
8457
8544
|
// meshes with negative scale have a different frontFace render pipeline
|
|
8458
8545
|
// descriptor value so the following must be honored in the cache key
|
|
8459
|
-
@@ -2501,9 +
|
|
8546
|
+
@@ -2501,9 +2531,11 @@ class WebGPUBackend extends Backend {
|
|
8460
8547
|
material.side, material.alphaToCoverage,
|
|
8461
8548
|
frontFaceCW,
|
|
8462
8549
|
utils.getSampleCountRenderContext( renderContext ),
|
|
@@ -8468,7 +8555,7 @@ index 719d67abe3986ca058794b63a441ce66bedde891..39001c639aafb8422852c8b75ce1ee35
|
|
|
8468
8555
|
renderObject.clippingContextCacheKey
|
|
8469
8556
|
].join();
|
|
8470
8557
|
|
|
8471
|
-
@@ -2571,6 +
|
|
8558
|
+
@@ -2571,6 +2603,12 @@ class WebGPUBackend extends Backend {
|
|
8472
8559
|
|
|
8473
8560
|
}
|
|
8474
8561
|
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"format:check": "biome format src"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@threenative/core": "0.3.
|
|
23
|
-
"@threenative/physics": "0.3.
|
|
24
|
-
"@threenative/ui": "0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.16",
|
|
23
|
+
"@threenative/physics": ">=0.3.16",
|
|
24
|
+
"@threenative/ui": ">=0.3.16",
|
|
25
25
|
"react": "19.2.0",
|
|
26
26
|
"react-dom": "19.2.0",
|
|
27
27
|
"three": "0.187.0"
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gltf-transform/cli": "4.4.2",
|
|
31
31
|
"@tailwindcss/vite": "4.3.3",
|
|
32
|
-
"@threenative/assets": "0.3.
|
|
33
|
-
"@threenative/playtest": "0.3.
|
|
32
|
+
"@threenative/assets": ">=0.3.17",
|
|
33
|
+
"@threenative/playtest": ">=0.3.16",
|
|
34
34
|
"@types/react": "19.2.0",
|
|
35
35
|
"@types/react-dom": "19.2.0",
|
|
36
36
|
"@types/three": "0.187.0",
|
|
37
37
|
"@vitejs/plugin-react": "6.0.5",
|
|
38
|
-
"create-threenative": "0.2.
|
|
38
|
+
"create-threenative": "0.2.21",
|
|
39
39
|
"esbuild": "0.27.0",
|
|
40
40
|
"playwright": "1.62.1",
|
|
41
41
|
"tailwindcss": "4.3.3",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint": "10.13.0"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@threenative/runtime-native": "0.3.
|
|
48
|
+
"@threenative/runtime-native": ">=0.3.16"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createRandom } from "@threenative/core";
|
|
1
2
|
import type { ItemId } from "../items/Inventory.js";
|
|
2
3
|
|
|
3
4
|
export interface IDrop {
|
|
@@ -10,19 +11,14 @@ const TABLE: readonly { readonly itemId: ItemId; readonly weight: number }[] = [
|
|
|
10
11
|
{ itemId: "ember-blade", weight: 30 },
|
|
11
12
|
];
|
|
12
13
|
|
|
13
|
-
function next(seed: number): number {
|
|
14
|
-
return (Math.imul(seed, 1_664_525) + 1_013_904_223) >>> 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
14
|
export function rollDrops(seed: number, rolls = 2): IDrop[] {
|
|
18
15
|
if (!Number.isInteger(seed) || seed < 0)
|
|
19
16
|
throw new RangeError("Drop seeds must be non-negative integers.");
|
|
20
17
|
if (!Number.isInteger(rolls) || rolls < 1) throw new RangeError("Drop rolls must be positive.");
|
|
21
|
-
|
|
18
|
+
const random = createRandom(seed);
|
|
22
19
|
const drops: IDrop[] = [];
|
|
23
20
|
for (let index = 0; index < rolls; index += 1) {
|
|
24
|
-
|
|
25
|
-
const pick = (state / 4_294_967_296) * 100;
|
|
21
|
+
const pick = random() * 100;
|
|
26
22
|
let cursor = 0;
|
|
27
23
|
for (const entry of TABLE) {
|
|
28
24
|
cursor += entry.weight;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// The action-RPG three-quarter view: high and behind, far enough back that the room reads as a
|
|
4
4
|
// room. It has to clear the **south wall**, which stands at z = +6 and is low so the camera can
|
|
5
5
|
// see over it — the oldest trick in an isometric dungeon, and it costs one row of wall table.
|
|
6
|
-
import { type PerspectiveCamera, Vector3 } from "three";
|
|
6
|
+
import { MathUtils, type PerspectiveCamera, Vector3 } from "three";
|
|
7
7
|
|
|
8
8
|
/** Where the camera sits relative to the player's body centre. */
|
|
9
9
|
const OFFSET = new Vector3(0, 10.2, 9.2);
|
|
@@ -25,7 +25,7 @@ export function createDungeonCamera(camera: PerspectiveCamera): ICameraRig {
|
|
|
25
25
|
return {
|
|
26
26
|
follow: (target, dt) => {
|
|
27
27
|
_desired.copy(target).add(OFFSET);
|
|
28
|
-
camera.position.lerp(_desired, 1
|
|
28
|
+
camera.position.lerp(_desired, MathUtils.damp(0, 1, 5, dt));
|
|
29
29
|
camera.lookAt(_aim.copy(target).add(AIM));
|
|
30
30
|
},
|
|
31
31
|
snap: pose,
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
// Independent CPU implementation. The material samples four Unreal textures that this repository
|
|
7
7
|
// must not carry, so each one is regenerated here from a seeded noise whose per-channel value
|
|
8
8
|
// quantiles and correlation lengths match the Unreal texture (measured, see the spec).
|
|
9
|
+
import { MathUtils } from "three";
|
|
10
|
+
|
|
9
11
|
import {
|
|
10
12
|
BOTTOM_KM,
|
|
11
13
|
CAMERA_KM,
|
|
@@ -110,7 +112,7 @@ const PROFILE_COEFFICIENTS = [
|
|
|
110
112
|
const clamp = (v: number): number => Math.max(0, Math.min(1, v));
|
|
111
113
|
const smooth = (v: number): number => {
|
|
112
114
|
const t = clamp(v);
|
|
113
|
-
return t
|
|
115
|
+
return MathUtils.smoothstep(t, 0, 1);
|
|
114
116
|
};
|
|
115
117
|
const mod = (a: number, n: number): number => ((a % n) + n) % n;
|
|
116
118
|
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
DataTexture,
|
|
12
12
|
Float32BufferAttribute,
|
|
13
13
|
LinearMipmapLinearFilter,
|
|
14
|
+
MathUtils,
|
|
14
15
|
MeshStandardMaterial,
|
|
15
16
|
RepeatWrapping,
|
|
16
17
|
SRGBColorSpace,
|
|
@@ -84,8 +85,8 @@ function grainNormalTexture(size = 128): DataTexture {
|
|
|
84
85
|
const y0 = Math.floor(v);
|
|
85
86
|
const fx = u - x0;
|
|
86
87
|
const fy = v - y0;
|
|
87
|
-
const sx = fx
|
|
88
|
-
const sy = fy
|
|
88
|
+
const sx = MathUtils.smoothstep(fx, 0, 1);
|
|
89
|
+
const sy = MathUtils.smoothstep(fy, 0, 1);
|
|
89
90
|
const at = (i: number, j: number): number =>
|
|
90
91
|
values[(((j % count) + count) % count) * count + (((i % count) + count) % count)] ?? 0;
|
|
91
92
|
const top = at(x0, y0) + (at(x0 + 1, y0) - at(x0, y0)) * sx;
|
|
@@ -15,6 +15,9 @@ const MOVE_RADIUS = 72;
|
|
|
15
15
|
const BUTTON_RADIUS = 58;
|
|
16
16
|
const EDGE = 36;
|
|
17
17
|
|
|
18
|
+
/** The knob's next point: `update` runs every frame, so it uses one instance. */
|
|
19
|
+
const knobPosition = new Vector2();
|
|
20
|
+
|
|
18
21
|
export interface ITouchPointer {
|
|
19
22
|
readonly position: Vector2;
|
|
20
23
|
}
|
|
@@ -122,13 +125,11 @@ export class TouchControls {
|
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
const center = this.#hasMoveAnchor ? this.#moveAnchor : this.#resting;
|
|
125
|
-
|
|
126
|
-
this.#
|
|
127
|
-
|
|
128
|
-
center.x + this.#input.move.x * MOVE_RADIUS,
|
|
129
|
-
center.y - this.#input.move.y * MOVE_RADIUS,
|
|
130
|
-
),
|
|
128
|
+
knobPosition.set(
|
|
129
|
+
center.x + this.#input.move.x * MOVE_RADIUS,
|
|
130
|
+
center.y - this.#input.move.y * MOVE_RADIUS,
|
|
131
131
|
);
|
|
132
|
+
place(this.#moveKnob, knobPosition);
|
|
132
133
|
this.#ability.material = ability ? this.#activeMaterial : this.#idleMaterial;
|
|
133
134
|
this.#attack.material = attack ? this.#activeMaterial : this.#idleMaterial;
|
|
134
135
|
this.#input.abilityPressed = ability && !this.#wasAbility;
|
|
@@ -580,7 +580,6 @@ export class Play extends Scene<GameState, IPhysicsContext> {
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
currentRoom = roomFor(player.mesh.position.x);
|
|
583
|
-
const previous = frameCtx.state.getState();
|
|
584
583
|
frameState.abilityCooldown = quantize(ability.cooldownRemaining, 1000);
|
|
585
584
|
frameState.baseDamage = damageStats.base;
|
|
586
585
|
frameState.damage = Math.round(damageStats.value(elapsed));
|
|
@@ -595,20 +594,7 @@ export class Play extends Scene<GameState, IPhysicsContext> {
|
|
|
595
594
|
visibleEnemy.state === "aggro" || visibleEnemy.state === "attack" ? 1 : 0;
|
|
596
595
|
frameState.wallEnemyAggro =
|
|
597
596
|
wallEnemy.state === "aggro" || wallEnemy.state === "attack" ? 1 : 0;
|
|
598
|
-
|
|
599
|
-
frameState.abilityCooldown !== previous.abilityCooldown ||
|
|
600
|
-
frameState.baseDamage !== previous.baseDamage ||
|
|
601
|
-
frameState.damage !== previous.damage ||
|
|
602
|
-
frameState.health !== previous.health ||
|
|
603
|
-
frameState.lineOfSightBlocked !== previous.lineOfSightBlocked ||
|
|
604
|
-
frameState.modifierActive !== previous.modifierActive ||
|
|
605
|
-
frameState.playerX !== previous.playerX ||
|
|
606
|
-
frameState.playerY !== previous.playerY ||
|
|
607
|
-
frameState.playerZ !== previous.playerZ ||
|
|
608
|
-
frameState.room !== previous.room ||
|
|
609
|
-
frameState.visibleEnemyAggro !== previous.visibleEnemyAggro ||
|
|
610
|
-
frameState.wallEnemyAggro !== previous.wallEnemyAggro;
|
|
611
|
-
if (changed) frameCtx.state.set(frameState);
|
|
597
|
+
frameCtx.state.set(frameState);
|
|
612
598
|
if (currentRoom !== lastSavedRoom) {
|
|
613
599
|
lastSavedRoom = currentRoom;
|
|
614
600
|
saveRequested = true;
|
|
@@ -38,12 +38,12 @@ A change to an existing game repeats steps 2-3 for that change, then steps 5-8.
|
|
|
38
38
|
|
|
39
39
|
<!-- shared: kit-files -->
|
|
40
40
|
Source in `src/`: `entities/`, `game.ts`, `interact.ts`, `level/`, `main.ts`, `render/`, `scenes/`, `state.ts`, `ui/`.
|
|
41
|
-
|
|
41
|
+
17 scenarios in `playtests/`; `playtests/survives.playtest.json` is the smoke proof.
|
|
42
42
|
Kit notes: `node_modules/create-threenative/agent-docs/references/kit-adventure.md`.
|
|
43
43
|
<!-- /shared -->
|
|
44
44
|
|
|
45
|
-
`ADVENTURE_FEEL` in `src/entities/Hero.ts` is Wren's one table of feel constants; `playtests/move.playtest.json` proves it. `src/interact.ts` is the one interact prompt picker. Every model is procedural.
|
|
46
|
-
`pnpm test` proves the web target. Desktop is claimed only where `native-playtests/survives.playtest.json` ran with `--target desktop`; Android and iOS have not run for this kit.
|
|
45
|
+
`ADVENTURE_FEEL` in `src/entities/Hero.ts` is Wren's one table of feel constants; `playtests/move.playtest.json` proves it. `src/interact.ts` is the one interact prompt picker. Every model is procedural except the baked forest-floor props, `assets/floor-*.glb` (PRD-889).
|
|
46
|
+
`pnpm test` proves the web target. Desktop is claimed only where `native-playtests/survives.playtest.json` and `native-playtests/woodland-floor.playtest.json` ran with `--target desktop`; Android and iOS have not run for this kit.
|
|
47
47
|
|
|
48
48
|
<!-- shared: kit-commands -->
|
|
49
49
|
## Commands
|
|
@@ -40,12 +40,12 @@ A change to an existing game repeats steps 2-3 for that change, then steps 5-8.
|
|
|
40
40
|
|
|
41
41
|
<!-- shared: kit-files -->
|
|
42
42
|
Source in `src/`: `entities/`, `game.ts`, `interact.ts`, `level/`, `main.ts`, `render/`, `scenes/`, `state.ts`, `ui/`.
|
|
43
|
-
|
|
43
|
+
17 scenarios in `playtests/`; `playtests/survives.playtest.json` is the smoke proof.
|
|
44
44
|
Kit notes: `node_modules/create-threenative/agent-docs/references/kit-adventure.md`.
|
|
45
45
|
<!-- /shared -->
|
|
46
46
|
|
|
47
|
-
`ADVENTURE_FEEL` in `src/entities/Hero.ts` is Wren's one table of feel constants; `playtests/move.playtest.json` proves it. `src/interact.ts` is the one interact prompt picker. Every model is procedural.
|
|
48
|
-
`pnpm test` proves the web target. Desktop is claimed only where `native-playtests/survives.playtest.json` ran with `--target desktop`; Android and iOS have not run for this kit.
|
|
47
|
+
`ADVENTURE_FEEL` in `src/entities/Hero.ts` is Wren's one table of feel constants; `playtests/move.playtest.json` proves it. `src/interact.ts` is the one interact prompt picker. Every model is procedural except the baked forest-floor props, `assets/floor-*.glb` (PRD-889).
|
|
48
|
+
`pnpm test` proves the web target. Desktop is claimed only where `native-playtests/survives.playtest.json` and `native-playtests/woodland-floor.playtest.json` ran with `--target desktop`; Android and iOS have not run for this kit.
|
|
49
49
|
|
|
50
50
|
<!-- shared: kit-commands -->
|
|
51
51
|
## Commands
|
|
@@ -42,6 +42,18 @@
|
|
|
42
42
|
"gte": -0.3,
|
|
43
43
|
"lte": 0.3,
|
|
44
44
|
"allowTrivial": "The capsule's origin is Wren's waist, so feet near zero after 300 ticks prove she stands on the clearing floor on the native host too."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"entity": "grass",
|
|
48
|
+
"component": "visibleChunks",
|
|
49
|
+
"gte": 1,
|
|
50
|
+
"allowTrivial": "Streamed grass chunks draw round Wren on the native host, from the same GrassField3D as the web."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"entity": "grass",
|
|
54
|
+
"component": "standNear",
|
|
55
|
+
"lte": 0.6,
|
|
56
|
+
"allowTrivial": "The grass next to Wren is pushed over on the native host too."
|
|
45
57
|
}
|
|
46
58
|
],
|
|
47
59
|
"movement": {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assert": {
|
|
3
|
+
"components": [
|
|
4
|
+
{
|
|
5
|
+
"allowTrivial": "Baked logs, stumps, twigs, litter and ferns draw round Wren on the native host too: the owned engine's own scatter, not a browser-only path.",
|
|
6
|
+
"component": "instances",
|
|
7
|
+
"entity": "floor",
|
|
8
|
+
"gte": 20
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"allowTrivial": "At least three streamed floor tiles stand inside the draw distance on the native host.",
|
|
12
|
+
"component": "visibleTiles",
|
|
13
|
+
"entity": "floor",
|
|
14
|
+
"gte": 3
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"diagnostics": {
|
|
18
|
+
"noConsoleErrors": true,
|
|
19
|
+
"noNetworkErrors": true,
|
|
20
|
+
"noRuntimeDiagnostics": true,
|
|
21
|
+
"runtimeReady": true
|
|
22
|
+
},
|
|
23
|
+
"movement": {
|
|
24
|
+
"entity": "player",
|
|
25
|
+
"minDistance": 1.0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"artifacts": {
|
|
29
|
+
"screenshots": "after"
|
|
30
|
+
},
|
|
31
|
+
"name": "adventure-native-woodland-floor",
|
|
32
|
+
"schemaVersion": 1,
|
|
33
|
+
"setup": {
|
|
34
|
+
"aim": {
|
|
35
|
+
"pitch": -0.1,
|
|
36
|
+
"yaw": 0.72
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"steps": [
|
|
40
|
+
{
|
|
41
|
+
"holdTicks": 30,
|
|
42
|
+
"kind": "input",
|
|
43
|
+
"label": "walk out under the old trees",
|
|
44
|
+
"press": "KeyW",
|
|
45
|
+
"release": true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"kind": "wait",
|
|
49
|
+
"label": "stand on the forest floor",
|
|
50
|
+
"release": true,
|
|
51
|
+
"waitTicks": 80
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"subject": "player",
|
|
55
|
+
"target": "desktop",
|
|
56
|
+
"viewport": {
|
|
57
|
+
"height": 720,
|
|
58
|
+
"width": 1280
|
|
59
|
+
},
|
|
60
|
+
"warmupFrames": 10
|
|
61
|
+
}
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"format:check": "biome format src"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@threenative/core": "0.3.
|
|
23
|
-
"@threenative/physics": "0.3.
|
|
24
|
-
"@threenative/ui": "0.3.
|
|
22
|
+
"@threenative/core": ">=0.3.16",
|
|
23
|
+
"@threenative/physics": ">=0.3.16",
|
|
24
|
+
"@threenative/ui": ">=0.3.16",
|
|
25
25
|
"react": "19.2.0",
|
|
26
26
|
"react-dom": "19.2.0",
|
|
27
27
|
"three": "0.187.0"
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@tailwindcss/vite": "4.3.3",
|
|
31
31
|
"@vitejs/plugin-react": "6.0.5",
|
|
32
32
|
"@types/three": "0.187.0",
|
|
33
|
-
"@threenative/assets": "0.3.
|
|
34
|
-
"@threenative/playtest": "0.3.
|
|
33
|
+
"@threenative/assets": ">=0.3.17",
|
|
34
|
+
"@threenative/playtest": ">=0.3.16",
|
|
35
35
|
"@types/react": "19.2.0",
|
|
36
36
|
"@types/react-dom": "19.2.0",
|
|
37
|
-
"create-threenative": "0.2.
|
|
37
|
+
"create-threenative": "0.2.21",
|
|
38
38
|
"esbuild": "0.27.0",
|
|
39
39
|
"playwright": "1.62.1",
|
|
40
40
|
"tailwindcss": "4.3.3",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint": "10.13.0"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@threenative/runtime-native": "0.3.
|
|
48
|
+
"@threenative/runtime-native": ">=0.3.16"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|