three-stdlib 2.20.2 → 2.20.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -8
- package/index.cjs.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/loaders/LUT3dlLoader.cjs.js +1 -1
- package/loaders/LUT3dlLoader.js +4 -2
- package/loaders/LUTCubeLoader.cjs.js +1 -1
- package/loaders/LUTCubeLoader.js +4 -2
- package/loaders/VOXLoader.cjs.js +1 -1
- package/loaders/VOXLoader.js +5 -5
- package/package.json +1 -1
- package/postprocessing/GlitchPass.cjs.js +1 -1
- package/postprocessing/GlitchPass.js +3 -5
- package/postprocessing/LUTPass.cjs.js +1 -1
- package/postprocessing/LUTPass.js +3 -3
- package/shaders/DigitalGlitch.cjs.js +1 -1
- package/shaders/DigitalGlitch.js +62 -6
package/README.md
CHANGED
@@ -23,25 +23,24 @@ import { OrbitControls } from 'three-stdlib/controls/OrbitControls'
|
|
23
23
|
|
24
24
|
## Problem
|
25
25
|
|
26
|
-
`threejs/examples`
|
26
|
+
`threejs/examples` are usually regarded as something that you copy/paste into your project and adapt to your needs. That's not how people use it, and this has caused numerous issues in the past.
|
27
27
|
|
28
28
|
## Solution
|
29
29
|
|
30
|
-
- Real, npm/node conform esm modules with marked dependencies
|
31
|
-
- Class based, optimized for tree-shaking, no global pollution, exports instead of collections
|
32
30
|
- A build system for esm and cjs
|
31
|
+
- Version managed dependencies
|
32
|
+
- Class based, optimized for tree-shaking, no globals, exports instead of collections
|
33
33
|
- Single flatbundle as well as individual transpiles
|
34
34
|
- Typesafety with simple annotation-like types
|
35
35
|
- CI, tests, linting, formatting (prettier)
|
36
36
|
|
37
|
-
But most importantly, allowing
|
38
|
-
|
39
|
-
Let's give jsm/examples the care it deserves!
|
37
|
+
But most importantly, allowing more people that use and rely on these primitives to hold a little stake, and to share the weight of maintaining it.
|
40
38
|
|
41
39
|
## How to contribute
|
42
40
|
|
43
41
|
If you want to get involved you could do any of the following:
|
44
42
|
|
45
|
-
-
|
43
|
+
- Help to maintain and sync the existing primitives
|
44
|
+
- Create stories for these examples for our dedicated storybook
|
46
45
|
- Convert some of the files to Typescript
|
47
|
-
- Add new examples for the library you think could be
|
46
|
+
- Add new examples for the library you think could be helpful for others
|