create-threenative 0.2.13 → 0.2.15
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/capability-reference.md +1 -1
- package/capabilities.json +1 -1
- package/dist/index.js +1 -1
- package/dist/threenative.js +7 -3
- package/dist/web-engine-post-effects.js +1 -1
- package/dist/web-engine-runtime.js +3 -0
- package/package.json +8 -8
- package/template-assets/patches/{three@0.185.1.patch → three@0.187.0.patch} +2543 -3560
- package/templates/action-rpg/package.json +10 -10
- package/templates/action-rpg/src/render/gpuSky.ts +3 -4
- package/templates/adventure/package.json +10 -10
- package/templates/collectathon/package.json +10 -10
- package/templates/kart/package.json +9 -9
- package/templates/minimal/package.json +9 -9
- package/templates/minimal/src/render/gpuSky.ts +3 -4
- package/templates/platformer/package.json +10 -10
- package/templates/puzzle/package.json +10 -10
- package/templates/racing/package.json +10 -10
- package/templates/racing/src/render/gpuSky.ts +3 -4
- package/templates/rain/package.json +9 -9
- package/templates/rts/package.json +9 -9
- package/templates/runner/package.json +10 -10
- package/templates/runner/src/render/gpuSky.ts +3 -4
- package/templates/sailing/package.json +10 -10
- package/templates/sailing/playtests/float-after-the-run-ends.playtest.json +1 -1
- package/templates/shooter/package.json +10 -10
- package/templates/shooter/src/render/gpuSky.ts +3 -4
- package/templates/shooter/src/scenes/Play.ts +4 -3
- package/templates/snow/package.json +10 -10
- package/templates/starter/package.json +10 -10
- package/templates/starter/src/render/gpuSky.ts +3 -4
- package/templates/starter/src/render/temporalAA.ts +10 -9
- package/templates/starter/src/render/temporalAAFrame.ts +2 -5
- package/templates/starter/src/render/temporalAAHooks.ts +53 -31
- package/templates/starter/src/render/temporalResolveDepth.ts +2 -2
- package/templates/tower-defense/package.json +10 -10
|
@@ -19,23 +19,23 @@
|
|
|
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.11",
|
|
23
|
+
"@threenative/physics": "0.3.11",
|
|
24
|
+
"@threenative/ui": "0.3.11",
|
|
25
25
|
"react": "19.2.0",
|
|
26
26
|
"react-dom": "19.2.0",
|
|
27
|
-
"three": "0.
|
|
27
|
+
"three": "0.187.0"
|
|
28
28
|
},
|
|
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.12",
|
|
33
|
+
"@threenative/playtest": "0.3.11",
|
|
34
34
|
"@types/react": "19.2.0",
|
|
35
35
|
"@types/react-dom": "19.2.0",
|
|
36
|
-
"@types/three": "0.
|
|
36
|
+
"@types/three": "0.187.0",
|
|
37
37
|
"@vitejs/plugin-react": "6.0.5",
|
|
38
|
-
"create-threenative": "0.2.
|
|
38
|
+
"create-threenative": "0.2.15",
|
|
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.11"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
59
59
|
"patchedDependencies": {
|
|
60
|
-
"three@0.
|
|
60
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
61
61
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
62
62
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
63
63
|
}
|
|
@@ -36,14 +36,13 @@ import {
|
|
|
36
36
|
vec4,
|
|
37
37
|
} from "three/tsl";
|
|
38
38
|
import {
|
|
39
|
-
|
|
39
|
+
Node,
|
|
40
40
|
type NodeBuilder,
|
|
41
41
|
type NodeFrame,
|
|
42
42
|
NodeMaterial,
|
|
43
43
|
NodeUpdateType,
|
|
44
44
|
QuadMesh,
|
|
45
45
|
RendererUtils,
|
|
46
|
-
TempNode,
|
|
47
46
|
} from "three/webgpu";
|
|
48
47
|
import {
|
|
49
48
|
BOTTOM_KM,
|
|
@@ -259,7 +258,7 @@ function cloudNoise() {
|
|
|
259
258
|
const skyDisc = uniform(1);
|
|
260
259
|
|
|
261
260
|
/** Cached passes: only texture reads and the analytic disc run at screen resolution. */
|
|
262
|
-
class GpuSkyNode extends
|
|
261
|
+
class GpuSkyNode extends Node<"vec3"> {
|
|
263
262
|
static get type(): string {
|
|
264
263
|
return "GpuSkyNode";
|
|
265
264
|
}
|
|
@@ -271,7 +270,7 @@ class GpuSkyNode extends TempNode<"vec3"> {
|
|
|
271
270
|
};
|
|
272
271
|
readonly materials: NodeMaterial[] = [];
|
|
273
272
|
readonly sun = uniform(new Vector3());
|
|
274
|
-
readonly #quad = new QuadMesh();
|
|
273
|
+
readonly #quad = new QuadMesh(new NodeMaterial());
|
|
275
274
|
readonly #noise = cloudNoise();
|
|
276
275
|
readonly #fog = uniform(new Color());
|
|
277
276
|
readonly #scale = vec3(...temperatureColour(SUN_KELVIN)).mul(SUN_ILLUMINANCE * SKY_TO_SUN);
|
|
@@ -19,22 +19,22 @@
|
|
|
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.11",
|
|
23
|
+
"@threenative/physics": "0.3.11",
|
|
24
|
+
"@threenative/ui": "0.3.11",
|
|
25
25
|
"react": "19.2.0",
|
|
26
26
|
"react-dom": "19.2.0",
|
|
27
|
-
"three": "0.
|
|
27
|
+
"three": "0.187.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@tailwindcss/vite": "4.3.3",
|
|
31
31
|
"@vitejs/plugin-react": "6.0.5",
|
|
32
|
-
"@types/three": "0.
|
|
33
|
-
"@threenative/assets": "0.3.
|
|
34
|
-
"@threenative/playtest": "0.3.
|
|
32
|
+
"@types/three": "0.187.0",
|
|
33
|
+
"@threenative/assets": "0.3.12",
|
|
34
|
+
"@threenative/playtest": "0.3.11",
|
|
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.15",
|
|
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.11"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
59
59
|
"patchedDependencies": {
|
|
60
|
-
"three@0.
|
|
60
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
61
61
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
62
62
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
63
63
|
}
|
|
@@ -19,22 +19,22 @@
|
|
|
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.11",
|
|
23
|
+
"@threenative/physics": "0.3.11",
|
|
24
|
+
"@threenative/ui": "0.3.11",
|
|
25
25
|
"react": "19.2.0",
|
|
26
26
|
"react-dom": "19.2.0",
|
|
27
|
-
"three": "0.
|
|
27
|
+
"three": "0.187.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@tailwindcss/vite": "4.3.3",
|
|
31
31
|
"@vitejs/plugin-react": "6.0.5",
|
|
32
|
-
"@types/three": "0.
|
|
33
|
-
"@threenative/assets": "0.3.
|
|
34
|
-
"@threenative/playtest": "0.3.
|
|
32
|
+
"@types/three": "0.187.0",
|
|
33
|
+
"@threenative/assets": "0.3.12",
|
|
34
|
+
"@threenative/playtest": "0.3.11",
|
|
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.15",
|
|
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.11"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
59
59
|
"patchedDependencies": {
|
|
60
|
-
"three@0.
|
|
60
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
61
61
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
62
62
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
63
63
|
}
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"format:check": "biome format src"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@threenative/core": "0.3.
|
|
23
|
-
"@threenative/ui": "0.3.
|
|
22
|
+
"@threenative/core": "0.3.11",
|
|
23
|
+
"@threenative/ui": "0.3.11",
|
|
24
24
|
"react": "19.2.0",
|
|
25
25
|
"react-dom": "19.2.0",
|
|
26
|
-
"three": "0.
|
|
26
|
+
"three": "0.187.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tailwindcss/vite": "4.3.3",
|
|
30
30
|
"@vitejs/plugin-react": "6.0.5",
|
|
31
|
-
"@types/three": "0.
|
|
32
|
-
"@threenative/assets": "0.3.
|
|
33
|
-
"@threenative/playtest": "0.3.
|
|
31
|
+
"@types/three": "0.187.0",
|
|
32
|
+
"@threenative/assets": "0.3.12",
|
|
33
|
+
"@threenative/playtest": "0.3.11",
|
|
34
34
|
"@types/react": "19.2.0",
|
|
35
35
|
"@types/react-dom": "19.2.0",
|
|
36
|
-
"create-threenative": "0.2.
|
|
36
|
+
"create-threenative": "0.2.15",
|
|
37
37
|
"esbuild": "0.27.0",
|
|
38
38
|
"playwright": "1.62.1",
|
|
39
39
|
"tailwindcss": "4.3.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"eslint": "10.13.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"@threenative/runtime-native": "0.3.
|
|
47
|
+
"@threenative/runtime-native": "0.3.11"
|
|
48
48
|
},
|
|
49
49
|
"overrides": {
|
|
50
50
|
"sharp": ">=0.35.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
58
58
|
"patchedDependencies": {
|
|
59
|
-
"three@0.
|
|
59
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
60
60
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
61
61
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
62
62
|
}
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"format:check": "biome format src"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@threenative/core": "0.3.
|
|
23
|
-
"@threenative/physics": "0.3.
|
|
24
|
-
"three": "0.
|
|
22
|
+
"@threenative/core": "0.3.11",
|
|
23
|
+
"@threenative/physics": "0.3.11",
|
|
24
|
+
"three": "0.187.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@threenative/assets": "0.3.
|
|
28
|
-
"@threenative/playtest": "0.3.
|
|
29
|
-
"@types/three": "0.
|
|
30
|
-
"create-threenative": "0.2.
|
|
27
|
+
"@threenative/assets": "0.3.12",
|
|
28
|
+
"@threenative/playtest": "0.3.11",
|
|
29
|
+
"@types/three": "0.187.0",
|
|
30
|
+
"create-threenative": "0.2.15",
|
|
31
31
|
"esbuild": "0.27.0",
|
|
32
32
|
"playwright": "1.62.1",
|
|
33
33
|
"typescript": "7.0.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"eslint": "10.13.0"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@threenative/runtime-native": "0.3.
|
|
40
|
+
"@threenative/runtime-native": "0.3.11"
|
|
41
41
|
},
|
|
42
42
|
"overrides": {
|
|
43
43
|
"sharp": ">=0.35.4",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
51
51
|
"patchedDependencies": {
|
|
52
|
-
"three@0.
|
|
52
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
53
53
|
"vite@8.2.0": "patches/vite@8.2.0.patch"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -36,14 +36,13 @@ import {
|
|
|
36
36
|
vec4,
|
|
37
37
|
} from "three/tsl";
|
|
38
38
|
import {
|
|
39
|
-
|
|
39
|
+
Node,
|
|
40
40
|
type NodeBuilder,
|
|
41
41
|
type NodeFrame,
|
|
42
42
|
NodeMaterial,
|
|
43
43
|
NodeUpdateType,
|
|
44
44
|
QuadMesh,
|
|
45
45
|
RendererUtils,
|
|
46
|
-
TempNode,
|
|
47
46
|
} from "three/webgpu";
|
|
48
47
|
import {
|
|
49
48
|
BOTTOM_KM,
|
|
@@ -259,7 +258,7 @@ function cloudNoise() {
|
|
|
259
258
|
const skyDisc = uniform(1);
|
|
260
259
|
|
|
261
260
|
/** Cached passes: only texture reads and the analytic disc run at screen resolution. */
|
|
262
|
-
class GpuSkyNode extends
|
|
261
|
+
class GpuSkyNode extends Node<"vec3"> {
|
|
263
262
|
static get type(): string {
|
|
264
263
|
return "GpuSkyNode";
|
|
265
264
|
}
|
|
@@ -271,7 +270,7 @@ class GpuSkyNode extends TempNode<"vec3"> {
|
|
|
271
270
|
};
|
|
272
271
|
readonly materials: NodeMaterial[] = [];
|
|
273
272
|
readonly sun = uniform(new Vector3());
|
|
274
|
-
readonly #quad = new QuadMesh();
|
|
273
|
+
readonly #quad = new QuadMesh(new NodeMaterial());
|
|
275
274
|
readonly #noise = cloudNoise();
|
|
276
275
|
readonly #fog = uniform(new Color());
|
|
277
276
|
readonly #scale = vec3(...temperatureColour(SUN_KELVIN)).mul(SUN_ILLUMINANCE * SKY_TO_SUN);
|
|
@@ -19,22 +19,22 @@
|
|
|
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.11",
|
|
23
|
+
"@threenative/physics": "0.3.11",
|
|
24
|
+
"@threenative/ui": "0.3.11",
|
|
25
25
|
"react": "19.2.0",
|
|
26
26
|
"react-dom": "19.2.0",
|
|
27
|
-
"three": "0.
|
|
27
|
+
"three": "0.187.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@tailwindcss/vite": "4.3.3",
|
|
31
31
|
"@vitejs/plugin-react": "6.0.5",
|
|
32
|
-
"@types/three": "0.
|
|
33
|
-
"@threenative/assets": "0.3.
|
|
34
|
-
"@threenative/playtest": "0.3.
|
|
32
|
+
"@types/three": "0.187.0",
|
|
33
|
+
"@threenative/assets": "0.3.12",
|
|
34
|
+
"@threenative/playtest": "0.3.11",
|
|
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.15",
|
|
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.11"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
59
59
|
"patchedDependencies": {
|
|
60
|
-
"three@0.
|
|
60
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
61
61
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
62
62
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
63
63
|
}
|
|
@@ -18,23 +18,23 @@
|
|
|
18
18
|
"format:check": "biome format src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@threenative/core": "0.3.
|
|
22
|
-
"@threenative/physics": "0.3.
|
|
23
|
-
"@threenative/ui": "0.3.
|
|
21
|
+
"@threenative/core": "0.3.11",
|
|
22
|
+
"@threenative/physics": "0.3.11",
|
|
23
|
+
"@threenative/ui": "0.3.11",
|
|
24
24
|
"react": "19.2.0",
|
|
25
25
|
"react-dom": "19.2.0",
|
|
26
|
-
"three": "0.
|
|
26
|
+
"three": "0.187.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@gltf-transform/cli": "4.4.2",
|
|
30
30
|
"@tailwindcss/vite": "4.3.3",
|
|
31
|
-
"@threenative/assets": "0.3.
|
|
32
|
-
"@threenative/playtest": "0.3.
|
|
31
|
+
"@threenative/assets": "0.3.12",
|
|
32
|
+
"@threenative/playtest": "0.3.11",
|
|
33
33
|
"@types/react": "19.2.0",
|
|
34
34
|
"@types/react-dom": "19.2.0",
|
|
35
|
-
"@types/three": "0.
|
|
35
|
+
"@types/three": "0.187.0",
|
|
36
36
|
"@vitejs/plugin-react": "6.0.5",
|
|
37
|
-
"create-threenative": "0.2.
|
|
37
|
+
"create-threenative": "0.2.15",
|
|
38
38
|
"esbuild": "0.27.0",
|
|
39
39
|
"playwright": "1.62.1",
|
|
40
40
|
"tailwindcss": "4.3.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"eslint": "10.13.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"@threenative/runtime-native": "0.3.
|
|
47
|
+
"@threenative/runtime-native": "0.3.11"
|
|
48
48
|
},
|
|
49
49
|
"overrides": {
|
|
50
50
|
"sharp": ">=0.35.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
58
58
|
"patchedDependencies": {
|
|
59
|
-
"three@0.
|
|
59
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
60
60
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
61
61
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
62
62
|
}
|
|
@@ -19,23 +19,23 @@
|
|
|
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.11",
|
|
23
|
+
"@threenative/physics": "0.3.11",
|
|
24
|
+
"@threenative/ui": "0.3.11",
|
|
25
25
|
"react": "19.2.0",
|
|
26
26
|
"react-dom": "19.2.0",
|
|
27
|
-
"three": "0.
|
|
27
|
+
"three": "0.187.0"
|
|
28
28
|
},
|
|
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.12",
|
|
33
|
+
"@threenative/playtest": "0.3.11",
|
|
34
34
|
"@types/react": "19.2.0",
|
|
35
35
|
"@types/react-dom": "19.2.0",
|
|
36
|
-
"@types/three": "0.
|
|
36
|
+
"@types/three": "0.187.0",
|
|
37
37
|
"@vitejs/plugin-react": "6.0.5",
|
|
38
|
-
"create-threenative": "0.2.
|
|
38
|
+
"create-threenative": "0.2.15",
|
|
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.11"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
59
59
|
"patchedDependencies": {
|
|
60
|
-
"three@0.
|
|
60
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
61
61
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
62
62
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
63
63
|
}
|
|
@@ -36,14 +36,13 @@ import {
|
|
|
36
36
|
vec4,
|
|
37
37
|
} from "three/tsl";
|
|
38
38
|
import {
|
|
39
|
-
|
|
39
|
+
Node,
|
|
40
40
|
type NodeBuilder,
|
|
41
41
|
type NodeFrame,
|
|
42
42
|
NodeMaterial,
|
|
43
43
|
NodeUpdateType,
|
|
44
44
|
QuadMesh,
|
|
45
45
|
RendererUtils,
|
|
46
|
-
TempNode,
|
|
47
46
|
} from "three/webgpu";
|
|
48
47
|
import {
|
|
49
48
|
BOTTOM_KM,
|
|
@@ -259,7 +258,7 @@ function cloudNoise() {
|
|
|
259
258
|
const skyDisc = uniform(1);
|
|
260
259
|
|
|
261
260
|
/** Cached passes: only texture reads and the analytic disc run at screen resolution. */
|
|
262
|
-
class GpuSkyNode extends
|
|
261
|
+
class GpuSkyNode extends Node<"vec3"> {
|
|
263
262
|
static get type(): string {
|
|
264
263
|
return "GpuSkyNode";
|
|
265
264
|
}
|
|
@@ -271,7 +270,7 @@ class GpuSkyNode extends TempNode<"vec3"> {
|
|
|
271
270
|
};
|
|
272
271
|
readonly materials: NodeMaterial[] = [];
|
|
273
272
|
readonly sun = uniform(new Vector3());
|
|
274
|
-
readonly #quad = new QuadMesh();
|
|
273
|
+
readonly #quad = new QuadMesh(new NodeMaterial());
|
|
275
274
|
readonly #noise = cloudNoise();
|
|
276
275
|
readonly #fog = uniform(new Color());
|
|
277
276
|
readonly #scale = vec3(...temperatureColour(SUN_KELVIN)).mul(SUN_ILLUMINANCE * SKY_TO_SUN);
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
"format:check": "biome format src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@threenative/core": "0.3.
|
|
22
|
-
"@threenative/ui": "0.3.
|
|
21
|
+
"@threenative/core": "0.3.11",
|
|
22
|
+
"@threenative/ui": "0.3.11",
|
|
23
23
|
"react": "19.2.0",
|
|
24
24
|
"react-dom": "19.2.0",
|
|
25
25
|
"react-reconciler": "0.33.0",
|
|
26
|
-
"three": "0.
|
|
26
|
+
"three": "0.187.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tailwindcss/vite": "4.3.3",
|
|
30
|
-
"@threenative/assets": "0.3.
|
|
31
|
-
"@threenative/playtest": "0.3.
|
|
30
|
+
"@threenative/assets": "0.3.12",
|
|
31
|
+
"@threenative/playtest": "0.3.11",
|
|
32
32
|
"@types/react": "19.2.0",
|
|
33
33
|
"@types/react-dom": "19.2.0",
|
|
34
|
-
"@types/three": "0.
|
|
34
|
+
"@types/three": "0.187.0",
|
|
35
35
|
"@vitejs/plugin-react": "6.0.5",
|
|
36
|
-
"create-threenative": "0.2.
|
|
36
|
+
"create-threenative": "0.2.15",
|
|
37
37
|
"esbuild": "0.27.0",
|
|
38
38
|
"playwright": "1.62.1",
|
|
39
39
|
"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.11"
|
|
49
49
|
},
|
|
50
50
|
"overrides": {
|
|
51
51
|
"sharp": ">=0.35.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
59
59
|
"patchedDependencies": {
|
|
60
|
-
"three@0.
|
|
60
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
61
61
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
62
62
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
63
63
|
}
|
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
"format:check": "biome format src"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@threenative/core": "0.3.
|
|
23
|
-
"@threenative/ui": "0.3.
|
|
22
|
+
"@threenative/core": "0.3.11",
|
|
23
|
+
"@threenative/ui": "0.3.11",
|
|
24
24
|
"react": "19.2.0",
|
|
25
25
|
"react-dom": "19.2.0",
|
|
26
|
-
"three": "0.
|
|
26
|
+
"three": "0.187.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@gltf-transform/cli": "4.4.2",
|
|
30
30
|
"@tailwindcss/vite": "4.3.3",
|
|
31
|
-
"@threenative/assets": "0.3.
|
|
32
|
-
"@threenative/playtest": "0.3.
|
|
31
|
+
"@threenative/assets": "0.3.12",
|
|
32
|
+
"@threenative/playtest": "0.3.11",
|
|
33
33
|
"@types/react": "19.2.0",
|
|
34
34
|
"@types/react-dom": "19.2.0",
|
|
35
|
-
"@types/three": "0.
|
|
35
|
+
"@types/three": "0.187.0",
|
|
36
36
|
"@vitejs/plugin-react": "6.0.5",
|
|
37
|
-
"create-threenative": "0.2.
|
|
37
|
+
"create-threenative": "0.2.15",
|
|
38
38
|
"esbuild": "0.27.0",
|
|
39
39
|
"playwright": "1.62.1",
|
|
40
40
|
"tailwindcss": "4.3.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"eslint": "10.13.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"@threenative/runtime-native": "0.3.
|
|
47
|
+
"@threenative/runtime-native": "0.3.11"
|
|
48
48
|
},
|
|
49
49
|
"overrides": {
|
|
50
50
|
"sharp": ">=0.35.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
58
58
|
"patchedDependencies": {
|
|
59
|
-
"three@0.
|
|
59
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
60
60
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
61
61
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
62
62
|
}
|
|
@@ -18,23 +18,23 @@
|
|
|
18
18
|
"format:check": "biome format src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@threenative/core": "0.3.
|
|
22
|
-
"@threenative/physics": "0.3.
|
|
23
|
-
"@threenative/ui": "0.3.
|
|
21
|
+
"@threenative/core": "0.3.11",
|
|
22
|
+
"@threenative/physics": "0.3.11",
|
|
23
|
+
"@threenative/ui": "0.3.11",
|
|
24
24
|
"react": "19.2.0",
|
|
25
25
|
"react-dom": "19.2.0",
|
|
26
|
-
"three": "0.
|
|
26
|
+
"three": "0.187.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@gltf-transform/cli": "4.4.2",
|
|
30
30
|
"@tailwindcss/vite": "4.3.3",
|
|
31
|
-
"@threenative/assets": "0.3.
|
|
32
|
-
"@threenative/playtest": "0.3.
|
|
31
|
+
"@threenative/assets": "0.3.12",
|
|
32
|
+
"@threenative/playtest": "0.3.11",
|
|
33
33
|
"@types/react": "19.2.0",
|
|
34
34
|
"@types/react-dom": "19.2.0",
|
|
35
|
-
"@types/three": "0.
|
|
35
|
+
"@types/three": "0.187.0",
|
|
36
36
|
"@vitejs/plugin-react": "6.0.5",
|
|
37
|
-
"create-threenative": "0.2.
|
|
37
|
+
"create-threenative": "0.2.15",
|
|
38
38
|
"esbuild": "0.27.0",
|
|
39
39
|
"playwright": "1.62.1",
|
|
40
40
|
"tailwindcss": "4.3.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"eslint": "10.13.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"@threenative/runtime-native": "0.3.
|
|
47
|
+
"@threenative/runtime-native": "0.3.11"
|
|
48
48
|
},
|
|
49
49
|
"overrides": {
|
|
50
50
|
"sharp": ">=0.35.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"onlyBuiltDependencies": ["@threenative/core", "@threenative/runtime-native"],
|
|
58
58
|
"patchedDependencies": {
|
|
59
|
-
"three@0.
|
|
59
|
+
"three@0.187.0": "patches/three@0.187.0.patch",
|
|
60
60
|
"vite@8.2.0": "patches/vite@8.2.0.patch",
|
|
61
61
|
"@tailwindcss/node@4.3.3": "patches/@tailwindcss__node@4.3.3.patch"
|
|
62
62
|
}
|