@null3d/three-compat 0.0.0 → 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/README.md +13 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
keeps them out of its core. They are Reinhard's and Cineon's tone curves, and the soft outline of
|
|
5
5
|
three.js's `OutlinePass`, with its glow, its pulse and its blurred edge.
|
|
6
6
|
|
|
7
|
+
## What it is not
|
|
8
|
+
|
|
9
|
+
It is not a compatibility layer, and it holds nothing more than those two curves and the outline.
|
|
10
|
+
It runs no three.js code, and it takes no three.js scene, object, material, shader or pass.
|
|
11
|
+
|
|
12
|
+
A port of a three.js scene rewrites the scene in null3D's own API, with or without this package.
|
|
13
|
+
The scene code moves into a sketch, which runs in a worker, with handles and typed arrays in place
|
|
14
|
+
of objects. GLSL in a `ShaderMaterial` or an `onBeforeCompile` patch becomes a WGSL surface
|
|
15
|
+
function, unlit function or vertex offset. An `EffectComposer` chain becomes `post.set` settings,
|
|
16
|
+
with `post.addEffect` for each custom pass.
|
|
17
|
+
[Porting from three.js](https://github.com/null3d-engine/null3d/blob/generated/docs/porting/threejs-overview.md)
|
|
18
|
+
gives the workflow and the limits that a port meets.
|
|
19
|
+
|
|
7
20
|
## Use
|
|
8
21
|
|
|
9
22
|
```ts
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.1.1";
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@null3d/three-compat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "three.js looks for null3D sketches: Reinhard and Cineon tone curves through the engine's tone-curve setting, and an outline with three.js OutlinePass's glow, pulse and blurred edge, built on the engine's public API.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "Ramesh Nair (https://hiddentao.com)",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"prepack": "bun ../../tools/build-package.ts three-compat"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@null3d/engine": "0.
|
|
48
|
+
"@null3d/engine": "0.1.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@null3d/engine": "0.
|
|
52
|
-
"@null3d/vite-plugin": "0.
|
|
51
|
+
"@null3d/engine": "0.1.1",
|
|
52
|
+
"@null3d/vite-plugin": "0.1.1",
|
|
53
53
|
"@webgpu/types": "0.1.74"
|
|
54
54
|
}
|
|
55
55
|
}
|