three-virtual-geometry 0.0.0-stage → 0.1.1
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/AGENTS.md +65 -0
- package/LICENSE +23 -0
- package/README.md +165 -2
- package/THIRD_PARTY_NOTICES.md +42 -0
- package/dist/bake.mjs +1378 -0
- package/dist/core/constants.d.ts +27 -0
- package/dist/core/import/fromObject3D.d.ts +116 -0
- package/dist/core/import/toNodeMaterial.d.ts +10 -0
- package/dist/core/io/cache.d.ts +32 -0
- package/dist/core/io/serialize.d.ts +21 -0
- package/dist/core/preprocess/buildVirtualMesh.d.ts +105 -0
- package/dist/core/preprocess/partition.d.ts +16 -0
- package/dist/core/preprocess/voxelProxy.d.ts +30 -0
- package/dist/core/runtime/GeometryPool.d.ts +219 -0
- package/dist/core/runtime/OcclusionCulling.d.ts +100 -0
- package/dist/core/runtime/VirtualGeometry.d.ts +201 -0
- package/dist/core/runtime/VirtualMesh.d.ts +93 -0
- package/dist/core/runtime/cut.d.ts +50 -0
- package/dist/core/runtime/vgMaterial.d.ts +33 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +2470 -0
- package/dist/index.js.map +1 -0
- package/dist/source.d.ts +34 -0
- package/dist/three-virtual-geometry.all.min.js +585 -0
- package/dist/three-virtual-geometry.all.min.js.map +6 -0
- package/dist/three-virtual-geometry.min.js +7 -0
- package/dist/three-virtual-geometry.min.js.map +6 -0
- package/docs/public/llms.txt +101 -0
- package/package.json +89 -4
package/package.json
CHANGED
|
@@ -1,6 +1,91 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "three-virtual-geometry",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Virtual geometry for three.js WebGPU: automatic cluster LOD and GPU-driven culling for billions of triangles. Independent implementation, not affiliated with Epic Games.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"three",
|
|
7
|
+
"threejs",
|
|
8
|
+
"three.js",
|
|
9
|
+
"webgpu",
|
|
10
|
+
"virtual-geometry",
|
|
11
|
+
"lod",
|
|
12
|
+
"level-of-detail",
|
|
13
|
+
"meshlet",
|
|
14
|
+
"cluster",
|
|
15
|
+
"culling",
|
|
16
|
+
"occlusion-culling",
|
|
17
|
+
"gpu-driven",
|
|
18
|
+
"nanite",
|
|
19
|
+
"tsl",
|
|
20
|
+
"gltf"
|
|
21
|
+
],
|
|
22
|
+
"homepage": "https://elad12390.github.io/three-virtual-geometry/",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/elad12390/three-virtual-geometry.git"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/elad12390/three-virtual-geometry/issues"
|
|
29
|
+
},
|
|
30
|
+
"author": "Elad Ben-Haim <elad12390@gmail.com>",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"type": "module",
|
|
33
|
+
"main": "./dist/index.js",
|
|
34
|
+
"module": "./dist/index.js",
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"import": "./dist/index.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"bin": {
|
|
43
|
+
"vg-bake": "dist/bake.mjs"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist",
|
|
47
|
+
"THIRD_PARTY_NOTICES.md",
|
|
48
|
+
"AGENTS.md",
|
|
49
|
+
"docs/public/llms.txt"
|
|
50
|
+
],
|
|
51
|
+
"sideEffects": false,
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=18"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"dev": "vite",
|
|
57
|
+
"build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json && npm run build:cli && npm run build:cdn",
|
|
58
|
+
"build:demo": "vite build",
|
|
59
|
+
"docs:dev": "vitepress dev docs",
|
|
60
|
+
"docs:build": "vitepress build docs",
|
|
61
|
+
"docs:preview": "vitepress preview docs",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
64
|
+
"bake": "node scripts/bake.mjs",
|
|
65
|
+
"build:cli": "esbuild scripts/bake.ts --bundle --platform=node --format=esm --target=node18 --outfile=dist/bake.mjs --external:three --external:meshoptimizer \"--banner:js=#!/usr/bin/env node\"",
|
|
66
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build && npm run check:types",
|
|
67
|
+
"bench": "node scripts/bench.mjs",
|
|
68
|
+
"build:cdn": "node scripts/build-cdn.mjs",
|
|
69
|
+
"check:types": "attw --pack . --profile esm-only"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"three": ">=0.180.0"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"meshoptimizer": "^1.3.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
79
|
+
"@types/three": "^0.186.0",
|
|
80
|
+
"@webgpu/types": "^0.1.74",
|
|
81
|
+
"esbuild": "^0.28.2",
|
|
82
|
+
"playwright": "^1.63.0",
|
|
83
|
+
"three": "^0.186.1",
|
|
84
|
+
"typescript": "^7.0.2",
|
|
85
|
+
"vite": "^8.3.3",
|
|
86
|
+
"vitepress": "^1.6.4",
|
|
87
|
+
"vitest": "^5.0.3"
|
|
88
|
+
},
|
|
89
|
+
"jsdelivr": "dist/three-virtual-geometry.all.min.js",
|
|
90
|
+
"unpkg": "dist/three-virtual-geometry.all.min.js"
|
|
91
|
+
}
|