@d5techs/3dgs-lib 1.0.0 → 1.0.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/README.md +13 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @d5techs/3dgs-lib
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
可扩展的 WebGPU 3D 渲染引擎,核心特性是支持 **3D Gaussian Splatting (3DGS)** 技术。
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
|
@@ -56,31 +56,30 @@
|
|
|
56
56
|
### 安装
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
|
-
yarn
|
|
59
|
+
# 使用 yarn
|
|
60
|
+
yarn add @d5techs/3dgs-lib
|
|
61
|
+
|
|
62
|
+
# 或使用 npm
|
|
63
|
+
npm install @d5techs/3dgs-lib
|
|
60
64
|
```
|
|
61
65
|
|
|
62
|
-
###
|
|
66
|
+
### 开发
|
|
63
67
|
|
|
64
68
|
```bash
|
|
69
|
+
# 启动开发服务器
|
|
65
70
|
yarn dev
|
|
66
|
-
```
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### 构建
|
|
72
|
+
# 构建库
|
|
73
|
+
yarn build:lib
|
|
71
74
|
|
|
72
|
-
```bash
|
|
73
75
|
# 构建 Demo
|
|
74
76
|
yarn build:demo
|
|
75
|
-
|
|
76
|
-
# 构建库(类型检查)
|
|
77
|
-
yarn build:lib
|
|
78
77
|
```
|
|
79
78
|
|
|
80
79
|
## 基本用法
|
|
81
80
|
|
|
82
81
|
```typescript
|
|
83
|
-
import { App } from '
|
|
82
|
+
import { App } from '@d5techs/3dgs-lib';
|
|
84
83
|
|
|
85
84
|
// 创建应用
|
|
86
85
|
const canvas = document.getElementById('canvas') as HTMLCanvasElement;
|
|
@@ -108,7 +107,7 @@ app.start();
|
|
|
108
107
|
## 项目结构
|
|
109
108
|
|
|
110
109
|
```
|
|
111
|
-
|
|
110
|
+
@d5techs/3dgs-lib/
|
|
112
111
|
├── src/ # 引擎源代码
|
|
113
112
|
│ ├── index.ts # 库入口
|
|
114
113
|
│ ├── App.ts # 统一调度入口
|