@threepipe/webgi-plugins 0.6.4 → 0.8.0
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/CHANGELOG.md +99 -0
- package/LICENSE +133 -16
- package/README.md +29 -26
- package/THIRD_PARTY_NOTICES.md +243 -0
- package/dist/dependencies.txt +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3907 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3824 -18
- package/dist/index.mjs.map +1 -1
- package/dist/passes/BilateralFilterPass.d.ts +1 -1
- package/dist/passes/BilateralFilterPass.d.ts.map +1 -1
- package/dist/plugins/buffer/VelocityBufferPlugin.d.ts.map +1 -1
- package/dist/plugins/extras/AdvancedGroundPlugin.d.ts +4 -3
- package/dist/plugins/extras/AdvancedGroundPlugin.d.ts.map +1 -1
- package/dist/plugins/extras/AnisotropyPlugin.d.ts +5 -4
- package/dist/plugins/extras/AnisotropyPlugin.d.ts.map +1 -1
- package/dist/plugins/extras/WatchHandsPlugin.d.ts +1 -1
- package/dist/plugins/extras/WatchHandsPlugin.d.ts.map +1 -1
- package/dist/plugins/index.d.ts +23 -23
- package/dist/plugins/postprocessing/BloomPlugin.d.ts.map +1 -1
- package/dist/plugins/postprocessing/DepthOfFieldPlugin.d.ts.map +1 -1
- package/dist/plugins/postprocessing/OutlinePlugin.d.ts +1 -1
- package/dist/plugins/postprocessing/OutlinePlugin.d.ts.map +1 -1
- package/dist/plugins/postprocessing/SSContactShadowsPlugin.d.ts.map +1 -1
- package/dist/plugins/postprocessing/SSGIPlugin.d.ts +3 -2
- package/dist/plugins/postprocessing/SSGIPlugin.d.ts.map +1 -1
- package/dist/plugins/postprocessing/SSReflectionPlugin.d.ts +1 -1
- package/dist/plugins/postprocessing/SSReflectionPlugin.d.ts.map +1 -1
- package/dist/plugins/postprocessing/TemporalAAPlugin.d.ts.map +1 -1
- package/dist/utils/FSShadowMaterial.d.ts.map +1 -1
- package/dist/utils/RandomizedDirectionalLight.d.ts.map +1 -1
- package/dist/utils/Reflector2.d.ts +4 -4
- package/dist/utils/Reflector2.d.ts.map +1 -1
- package/dist/utils/ShadowMapBaker.d.ts +1 -1
- package/dist/utils/ShadowMapBaker.d.ts.map +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +22 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1648 -0
- package/docs/classes/AdvancedGroundPlugin.html +736 -0
- package/docs/classes/AnisotropyPlugin.html +432 -0
- package/docs/classes/BloomPlugin.html +466 -0
- package/docs/classes/BloomPluginPass.html +323 -0
- package/docs/classes/DepthOfFieldPlugin.html +493 -0
- package/docs/classes/DepthOfFieldPluginPass.html +340 -0
- package/docs/classes/OutlinePlugin.html +696 -0
- package/docs/classes/OutlineRenderPass.html +252 -0
- package/docs/classes/SSContactShadowsPlugin.html +421 -0
- package/docs/classes/SSGIPlugin.html +488 -0
- package/docs/classes/SSGIPluginPass.html +404 -0
- package/docs/classes/SSReflectionPlugin.html +495 -0
- package/docs/classes/SSReflectionPluginPass.html +410 -0
- package/docs/classes/SSVelocityMaterial.html +110 -0
- package/docs/classes/TemporalAAPlugin.html +447 -0
- package/docs/classes/TemporalAAPluginPass.html +337 -0
- package/docs/classes/VelocityBufferPlugin.html +480 -0
- package/docs/classes/WatchHandsPlugin.html +443 -0
- package/docs/hierarchy.html +28 -0
- package/docs/index.html +38 -0
- package/docs/types/OutlinePluginPass.html +32 -0
- package/docs/types/OutlinePluginTarget.html +32 -0
- package/docs/types/SSGIPluginTarget.html +32 -0
- package/docs/types/SSReflectionPluginTarget.html +32 -0
- package/docs/types/VelocityBufferPluginPass.html +32 -0
- package/docs/types/VelocityBufferPluginTarget.html +32 -0
- package/docs/variables/anisotropyGLTFExtension.html +43 -0
- package/docs/variables/webgiPlugins.html +32 -0
- package/package.json +23 -22
- package/src/global.d.ts +27 -0
- package/src/index.ts +1 -0
- package/src/passes/BilateralFilterPass.ts +62 -0
- package/src/passes/shaders/ssaoBilateral.glsl +89 -0
- package/src/plugins/buffer/VelocityBufferPlugin.ts +270 -0
- package/src/plugins/buffer/shaders/VelocityBufferPlugin.mat.frag.glsl +46 -0
- package/src/plugins/buffer/shaders/VelocityBufferPlugin.mat.vert.glsl +51 -0
- package/src/plugins/buffer/shaders/VelocityBufferPlugin.unpack.glsl +8 -0
- package/src/plugins/extras/AdvancedGroundPlugin.ts +385 -0
- package/src/plugins/extras/AnisotropyPlugin.ts +519 -0
- package/src/plugins/extras/WatchHandsPlugin.ts +156 -0
- package/src/plugins/extras/shaders/anisotropyBsdf.glsl +64 -0
- package/src/plugins/extras/shaders/anisotropyTBN.glsl +35 -0
- package/src/plugins/index.ts +38 -0
- package/src/plugins/postprocessing/BloomPlugin.ts +377 -0
- package/src/plugins/postprocessing/DepthOfFieldPlugin.ts +470 -0
- package/src/plugins/postprocessing/OutlinePlugin.ts +476 -0
- package/src/plugins/postprocessing/SSContactShadowsPlugin.ts +374 -0
- package/src/plugins/postprocessing/SSGIPlugin.ts +597 -0
- package/src/plugins/postprocessing/SSReflectionPlugin.ts +563 -0
- package/src/plugins/postprocessing/TemporalAAPlugin.ts +301 -0
- package/src/plugins/postprocessing/shaders/dofBlurBox.glsl +46 -0
- package/src/plugins/postprocessing/shaders/dofCombine.glsl +68 -0
- package/src/plugins/postprocessing/shaders/dofComputeCoC.glsl +21 -0
- package/src/plugins/postprocessing/shaders/dofExpandCoC.glsl +56 -0
- package/src/plugins/postprocessing/shaders/dofPoissonBox.glsl +90 -0
- package/src/plugins/postprocessing/shaders/giPatch.glsl +53 -0
- package/src/plugins/postprocessing/shaders/hdrBloom.glsl +101 -0
- package/src/plugins/postprocessing/shaders/outline.glsl +60 -0
- package/src/plugins/postprocessing/shaders/outlineDepthFrag.glsl +22 -0
- package/src/plugins/postprocessing/shaders/outlineDepthVert.glsl +26 -0
- package/src/plugins/postprocessing/shaders/poissonDiskSamples.glsl +19 -0
- package/src/plugins/postprocessing/shaders/samplePointHelpers.glsl +3 -0
- package/src/plugins/postprocessing/shaders/ssrPatch.glsl +145 -0
- package/src/plugins/postprocessing/shaders/ssreflectionMain.glsl +69 -0
- package/src/plugins/postprocessing/shaders/ssrt.glsl +118 -0
- package/src/utils/FSShadowMaterial.ts +65 -0
- package/src/utils/RandomizedDirectionalLight.ts +288 -0
- package/src/utils/Reflector2.ts +309 -0
- package/src/utils/ShadowMapBaker.ts +527 -0
- package/src/utils/shaders/computeScreenSpaceVelocity.glsl +16 -0
- package/src/utils/shaders/getWorldPositionFromViewZ.glsl +9 -0
- package/src/utils/shaders/poissonDiskSamples.glsl +19 -0
- package/src/utils/shaders/reflectorSample.glsl +54 -0
- package/src/utils/shaders/seperableBlurShaderMasked.glsl +28 -0
- package/src/utils/shaders/seperableShadowBlur.glsl +21 -0
- package/src/utils/shaders/ssreflection.glsl +141 -0
- package/src/utils/shaders/ssrtao.glsl +275 -0
- package/src/utils/shaders/temporalaa.glsl +233 -0
- package/src/utils/shaders.ts +24 -0
- package/tsconfig.json +40 -44
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Changelog for @threepipe/webgi-plugins
|
|
2
|
+
|
|
3
|
+
All notable changes to this plugin will be documented in this file.
|
|
4
|
+
|
|
5
|
+
[//]: # (The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).)
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.8.0] - 2026-12-01
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- License: the webgi Free Forever License replaces the modified GNU GPL-3.0-only notice, from 0.8.0 (including its prereleases, such as 0.8.0-r172.1); see LICENSE and THIRD_PARTY_NOTICES.md. Releases up to 0.7.0 keep the license they carried
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- `BloomPlugin` and `DepthOfFieldPlugin`: setting a setting of their pass in code renders again: the bloom Threshold, Soft Threshold, Intensity, Background Bloom and Debug, and the depth of field Depth Range, Near and Far Blur Scale. They changed only the shader values, so a viewer at rest showed the change only at its next render; the Tweakpane panel hid it because its own change marks the viewer dirty. They now call `setDirty` like the settings of `SSAOPluginPass`
|
|
18
|
+
|
|
19
|
+
## [0.7.0] - 2026-10-24
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- License unchanged: the modified GNU GPL-3.0-only notice of 0.6.x, see LICENSE; third-party notices in THIRD_PARTY_NOTICES.md
|
|
24
|
+
- Package moved into the threepipe plugin layout; the plugins and their API are unchanged
|
|
25
|
+
- `peerDependencies`: `threepipe` `>=0.5.1` (was `>=0.4.0`)
|
|
26
|
+
- The bundle is no longer minified, like the other threepipe plugins; the package also ships `src`
|
|
27
|
+
- Shader provenance: unused helpers and dead code removed; the TAA sharpening and the light sampling are rewritten from their formulas
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- `AdvancedGroundPlugin`: planar reflections created a new 1024x1024 render target on every reflection update; the target is now created once, reused, and disposed in `onRemove`
|
|
32
|
+
- `WatchHandsPlugin`: a watch without a second hand never moved, and an hour or minute offset change waited for the second hand; any hand off its target rotation now updates all hands
|
|
33
|
+
- `SSGIPlugin`: disabling or removing SSGI left SSAO disabled for good; SSGI now gives the SSAO disable key back when it is off or removed
|
|
34
|
+
- `SSGIPlugin`: the material's SSGI "Enabled" toggle (`userData.ssgiDisabled`) had no effect on rendering; it now turns SSGI off for that material
|
|
35
|
+
- `VelocityBufferPlugin`: the per-material opt-out (`userData.VelocityBuffer.disabled`) worked the wrong way round; it is now passed as the inverse of `renderToGBuffer`
|
|
36
|
+
- `VelocityBufferPlugin`: alpha-mapped meshes wrote motion vectors over their cut-out texels (and the alpha map had no UV channel); the velocity shader now applies the alpha test like the GBuffer material
|
|
37
|
+
- `AdvancedGroundPlugin`: removing the plugin left the shadow baker's render target, blur material and light in place; `ShadowMapBaker.dispose()` frees them and `onRemove` calls it. `RandomizedDirectionalLight.dispose()` now frees its shadow map
|
|
38
|
+
|
|
39
|
+
## [0.6.4]
|
|
40
|
+
|
|
41
|
+
- Fix for SSContact Shadow plugin after threepipe/three.js update
|
|
42
|
+
|
|
43
|
+
## [0.6.3]
|
|
44
|
+
|
|
45
|
+
- Ground fix for widget update
|
|
46
|
+
|
|
47
|
+
## [0.6.2]
|
|
48
|
+
|
|
49
|
+
- Support for multiple object selection in OutlinePlugin (since threepipe 0.5.0)
|
|
50
|
+
|
|
51
|
+
## [0.6.1] - 2025-11-07
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- Compile with tsconfig target ES2020
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## [0.6.0] - 2025-11-07
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
|
|
62
|
+
- Update [threepipe](https://threepipe.org/) `peerDependency` to [0.4.0](https://github.com/repalash/threepipe/releases/tag/v0.4.0)
|
|
63
|
+
- Add `enabled` parameter to `BloomPlugin` constructor
|
|
64
|
+
- Updates and type changes for three.js r163
|
|
65
|
+
- Some type fixes.
|
|
66
|
+
- Compile with tsconfig target ES2022
|
|
67
|
+
|
|
68
|
+
## [0.5.11] - 2025-10-04
|
|
69
|
+
|
|
70
|
+
### Changed
|
|
71
|
+
|
|
72
|
+
- Disable SSAO and SSCS on ground mesh material in `AdvancedGroundPlugin` by setting `userData.ssaoDisabled` and `userData.sscsDisabled` to `true`.
|
|
73
|
+
|
|
74
|
+
## [0.5.10] - 2025-09-03
|
|
75
|
+
|
|
76
|
+
### Added
|
|
77
|
+
|
|
78
|
+
- Add exports field to package.json
|
|
79
|
+
|
|
80
|
+
## [0.5.9] - 2025-09-03
|
|
81
|
+
|
|
82
|
+
### Changed
|
|
83
|
+
|
|
84
|
+
- Update [threepipe](https://threepipe.org/) `peerDependency` to >=[0.2.0](https://github.com/repalash/threepipe/releases/tag/v0.2.0)
|
|
85
|
+
|
|
86
|
+
## [0.5.7] - 2025-09-01
|
|
87
|
+
|
|
88
|
+
### Added
|
|
89
|
+
|
|
90
|
+
- Batching shader snippets in `VelocityBufferPlugin`
|
|
91
|
+
- Handle extension cleanup in `VelocityBufferPlugin`, `SSGIPlugin`, `SSReflectionPlugin`
|
|
92
|
+
|
|
93
|
+
### Changed
|
|
94
|
+
|
|
95
|
+
- Update [threepipe](https://threepipe.org/) `peerDependency` to [0.1.0](https://github.com/repalash/threepipe/releases/tag/v0.1.0)
|
|
96
|
+
|
|
97
|
+
[unreleased]: https://github.com/repalash/threepipe/tree/dev/plugins/webgi-plugins
|
|
98
|
+
[0.7.0]: https://github.com/repalash/threepipe/tree/dev/plugins/webgi-plugins
|
|
99
|
+
[0.5.7]: https://webgi.dev/
|
package/LICENSE
CHANGED
|
@@ -1,24 +1,141 @@
|
|
|
1
|
-
|
|
1
|
+
webgi Free Forever License
|
|
2
|
+
Version 1.0, effective 2026-11-26
|
|
2
3
|
|
|
3
|
-
Copyright (
|
|
4
|
+
Copyright (c) 2023-present Palash Bansal <palash@shaders.app>
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
In short (the terms below govern if this summary differs):
|
|
7
|
+
- Free for any use, commercial and closed source included, with no limit on clients, domains,
|
|
8
|
+
traffic or revenue. Attribution is optional.
|
|
9
|
+
- Keep this license, or a link to it, in your notices.
|
|
10
|
+
- Do not publish or sell the Plugins as a library, SDK or package for other developers, and do
|
|
11
|
+
not claim that you wrote them.
|
|
12
|
+
- This is a source-available license. It is not an OSI-approved open source license.
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
GNU General Public License for more details.
|
|
14
|
+
SPDX-License-Identifier: LicenseRef-webgi-FFL-1.0
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
1. Definitions
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
"Plugins" means the software published as the npm package "@threepipe/webgi-plugins", version
|
|
19
|
+
0.8.0 and later, including its prereleases (such as 0.8.0-r172.1), as published by the Licensor, and its source code in the
|
|
20
|
+
"plugins/webgi-plugins" folder of the threepipe repository. The term covers source and compiled
|
|
21
|
+
forms, with or without your modifications.
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
"Application" means software or a service that you make with the Plugins and offer to its
|
|
24
|
+
users: for example a website, a web, native or desktop application, a hosted service or
|
|
25
|
+
viewer, an editor, a game or rendering engine, or a theme or template that end users install.
|
|
26
|
+
An Application can have its own API, plugin system, scripting or embed code, and its users can
|
|
27
|
+
build content and products with it.
|
|
21
28
|
|
|
22
|
-
|
|
29
|
+
"Library Copy" means a copy of the Plugins, modified or not, that you offer to others to
|
|
30
|
+
import, require or install into their own code, as a package, module or file.
|
|
23
31
|
|
|
24
|
-
|
|
32
|
+
"Official Package" means the Plugins as the Licensor publishes them on npm.
|
|
33
|
+
|
|
34
|
+
"You" means the person or organization that exercises rights under this license, including
|
|
35
|
+
the organization you act for.
|
|
36
|
+
|
|
37
|
+
"Licensor" means Palash Bansal and his successors and assigns.
|
|
38
|
+
|
|
39
|
+
2. Grant
|
|
40
|
+
|
|
41
|
+
The Licensor grants you a perpetual, worldwide, non-exclusive, royalty-free license to use,
|
|
42
|
+
copy, modify, bundle, run and distribute the Plugins, for any purpose, subject to Section 3.
|
|
43
|
+
The license is irrevocable except as Section 7 says.
|
|
44
|
+
|
|
45
|
+
This includes personal, educational and commercial use. It includes closed-source and
|
|
46
|
+
proprietary Applications. There is no limit on the number of Applications, clients, domains,
|
|
47
|
+
viewers, page views or revenue.
|
|
48
|
+
|
|
49
|
+
You do not have to publish your own source code because the Plugins are in your Application.
|
|
50
|
+
You do not have to show a logo, name or link. A mention such as "rendering powered by webgi"
|
|
51
|
+
is appreciated and optional.
|
|
52
|
+
|
|
53
|
+
The Licensor also grants you a license under any patent claims it holds that the Plugins alone
|
|
54
|
+
infringe, to the extent needed to exercise the rights above. This patent license ends if you
|
|
55
|
+
bring a patent claim, including a cross-claim or counterclaim, that alleges the Plugins
|
|
56
|
+
infringe a patent.
|
|
57
|
+
|
|
58
|
+
3. Restriction
|
|
59
|
+
|
|
60
|
+
You must not:
|
|
61
|
+
|
|
62
|
+
a. publish or distribute a Library Copy. Only the Licensor publishes the Official Package;
|
|
63
|
+
b. include the Plugins in a library, SDK, framework or starter kit that developers install
|
|
64
|
+
into their own code. Such work must declare the Official Package as a dependency and keep it
|
|
65
|
+
out of its own published build. The API, plugin system or embed code of an Application is
|
|
66
|
+
not such work, even when its features use the Plugins, if it does not offer the Plugins' own
|
|
67
|
+
classes or modules for import;
|
|
68
|
+
c. claim that you wrote or own the Plugins, or present them as your own rendering
|
|
69
|
+
technology;
|
|
70
|
+
d. charge for the Plugins as such. A fee for your Application, or for its features that use
|
|
71
|
+
the Plugins, is allowed.
|
|
72
|
+
|
|
73
|
+
The following are allowed:
|
|
74
|
+
|
|
75
|
+
- an Application, for one client or for many, open or closed source, with the Plugins in any
|
|
76
|
+
form (bundled, minified, tree-shaken or as separate files), served from any host or CDN that
|
|
77
|
+
serves the Application, or committed as build output in your repository. Files that your
|
|
78
|
+
Application loads are not a Library Copy, even at a public URL, if you do not offer them to
|
|
79
|
+
others to load into their own code;
|
|
80
|
+
- loading the unmodified Official Package from a public mirror of the npm registry, such as
|
|
81
|
+
unpkg, jsDelivr or esm.sh;
|
|
82
|
+
- a public or private fork of the threepipe repository. A package that you publish from the
|
|
83
|
+
fork must not contain the Plugins;
|
|
84
|
+
- a private registry, proxy or cache that serves the Official Package only to your own team;
|
|
85
|
+
- unmodified copies of the Official Package, with this LICENSE file inside, in a project
|
|
86
|
+
archive, container image or node_modules folder that you share;
|
|
87
|
+
- not naming webgi in your product.
|
|
88
|
+
|
|
89
|
+
4. Notices
|
|
90
|
+
|
|
91
|
+
Keep this license text, or a link to it, in a notices file or licenses page of your
|
|
92
|
+
Application, such as THIRD_PARTY_LICENSES. The text is in the LICENSE file of the Official
|
|
93
|
+
Package and at https://unpkg.com/@threepipe/webgi-plugins@0.8.0-r172.1/LICENSE. Your build tools can
|
|
94
|
+
remove comments from compiled code.
|
|
95
|
+
|
|
96
|
+
5. Trademarks
|
|
97
|
+
|
|
98
|
+
This license grants no rights to the names or logos "webgi", "threepipe" or "iJewel3D". You
|
|
99
|
+
can say that your product uses webgi or threepipe.
|
|
100
|
+
|
|
101
|
+
6. Contributions
|
|
102
|
+
|
|
103
|
+
If you submit a change to the Licensor for inclusion in the Plugins, for example as a pull
|
|
104
|
+
request, you grant the Licensor a perpetual, worldwide, irrevocable, non-exclusive,
|
|
105
|
+
royalty-free, sublicensable license to use, modify, distribute and relicense your contribution
|
|
106
|
+
on any terms. You confirm that you have the right to grant it.
|
|
107
|
+
|
|
108
|
+
7. Termination
|
|
109
|
+
|
|
110
|
+
If you breach Section 3, your rights under this license end unless you cure the breach within
|
|
111
|
+
30 days after written notice from the Licensor, by email or as an issue on your repository. If
|
|
112
|
+
you knowingly breach Section 3 again within 12 months after a cure, your rights end on notice,
|
|
113
|
+
with no new cure period. Any other later breach of Section 3 gets its own 30-day cure period.
|
|
114
|
+
|
|
115
|
+
Termination does not affect Applications that you distributed in compliance with this license.
|
|
116
|
+
It does not affect people who received the Plugins from you; they hold their own license under
|
|
117
|
+
these terms.
|
|
118
|
+
|
|
119
|
+
8. Disclaimer of warranty and liability
|
|
120
|
+
|
|
121
|
+
TO THE EXTENT THE LAW ALLOWS, THE PLUGINS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
122
|
+
EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
123
|
+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT IS THE LICENSOR LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
124
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
125
|
+
CONNECTION WITH THE PLUGINS OR THE USE OR OTHER DEALINGS IN THE PLUGINS.
|
|
126
|
+
|
|
127
|
+
9. General
|
|
128
|
+
|
|
129
|
+
Using the Plugins means you accept this license. Rights not granted here are reserved. If the
|
|
130
|
+
Licensor does not act on a breach, that is not a waiver. If a part of this license is
|
|
131
|
+
unenforceable, the rest stays in force, and that part is read as narrowly as needed to make
|
|
132
|
+
it enforceable.
|
|
133
|
+
|
|
134
|
+
10. Relation to other licenses and history
|
|
135
|
+
|
|
136
|
+
The threepipe core library is licensed separately under the Apache License 2.0. Third-party
|
|
137
|
+
components keep their own licenses and notices. Releases of "@threepipe/webgi-plugins" before
|
|
138
|
+
0.8.0 (up to 0.7.0) stay available under the license that each release carried. This license
|
|
139
|
+
applies from version 0.8.0, including its prereleases.
|
|
140
|
+
|
|
141
|
+
Contact: palash@shaders.app
|
package/README.md
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
# @threepipe/webgi-plugins
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
[WebGi](https://webgi.dev/) - Realistic Rendering Plugins for [threepipe](https://threepipe.org/)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Github](https://github.com/repalash/threepipe/tree/dev/plugins/webgi-plugins) —
|
|
6
|
+
[Examples](https://threepipe.org/examples/?q=webgi) —
|
|
7
|
+
[API Reference](https://threepipe.org/plugins/webgi-plugins/docs)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
[](https://www.npmjs.com/package/@threepipe/webgi-plugins)
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm create threepipe@latest
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Or add to existing project -
|
|
15
|
-
```bash
|
|
16
|
-
npm install threepipe @threepipe/webgi-plugins
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Read more at [webgi.dev](https://webgi.dev/)
|
|
11
|
+
**Documentation and Guides**: [threepipe.org/package/webgi-plugins](https://threepipe.org/package/webgi-plugins.html)
|
|
20
12
|
|
|
21
13
|
## Licensing
|
|
22
14
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
All plugins in this package are **free forever**, for personal and commercial use, under the
|
|
16
|
+
[webgi Free Forever License](https://unpkg.com/@threepipe/webgi-plugins@0.8.0-r172.1/LICENSE) (also the LICENSE file in this package).
|
|
17
|
+
|
|
18
|
+
- Use, bundle and modify them in any application, closed source included, with no limit on
|
|
19
|
+
clients, domains, traffic or revenue.
|
|
20
|
+
- You do not have to publish your source code, and no visible attribution is required. A small
|
|
21
|
+
"rendering powered by webgi" note is appreciated but optional.
|
|
22
|
+
- Keep the license text or a link to it in your application's notices file
|
|
23
|
+
(THIRD_PARTY_LICENSES or similar).
|
|
24
|
+
- What you must not do: publish or distribute a copy of the plugins for other developers to
|
|
25
|
+
install in their own code (as a package, library, SDK or file), or present them as your own
|
|
26
|
+
rendering technology. Libraries and starter kits depend on this package instead. Any application
|
|
27
|
+
(website, viewer, editor, engine, hosted service) can ship them bundled, from any host or CDN.
|
|
28
|
+
- The license is source-available. It is not an OSI-approved open source license.
|
|
29
|
+
|
|
30
|
+
Paid jewellery plugins (Diamond, gemstones, inclusions, bevel, rainbow diamond) will be a
|
|
31
|
+
separate package, `@ijewel3d/threepipe-plugins`, under the iJewel3D SDK License. See
|
|
32
|
+
[ijewel3d.com/license](https://ijewel3d.com/license) and the
|
|
33
|
+
[licensing FAQ](https://developer.ijewel3d.com/introduction/licensing-faq.html).
|
|
34
|
+
|
|
35
|
+
Releases before 0.8.0 (up to 0.7.0) carried a GNU GPL v3 notice (from 0.5.0 with additional terms) and stay
|
|
36
|
+
available under the license each of them carried. That notice never matched the intent (free use in closed-source
|
|
37
|
+
apps). This license applies from version 0.8.0, including its prereleases.
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Third-party notices for @threepipe/webgi-plugins
|
|
2
|
+
|
|
3
|
+
This package is licensed under the webgi Free Forever License (see LICENSE). It contains or
|
|
4
|
+
adapts code from the following projects, which keep their own licenses and notices. The full
|
|
5
|
+
license texts are at the end of this file.
|
|
6
|
+
|
|
7
|
+
## Filament (Apache License 2.0)
|
|
8
|
+
|
|
9
|
+
Copyright (C) 2015 The Android Open Source Project. https://github.com/google/filament
|
|
10
|
+
Adapted in `src/plugins/extras/shaders/anisotropyBsdf.glsl` (`getReflectedVector`,
|
|
11
|
+
`anisotropicLobe`) and referenced in `src/plugins/extras/AnisotropyPlugin.ts`.
|
|
12
|
+
|
|
13
|
+
## Cycles (Apache License 2.0)
|
|
14
|
+
|
|
15
|
+
Copyright 2011-2022 Blender Foundation. https://github.com/blender/cycles
|
|
16
|
+
Referenced in `src/plugins/extras/shaders/anisotropyTBN.glsl` (tangent rotation, comment only).
|
|
17
|
+
|
|
18
|
+
## three.js (MIT License)
|
|
19
|
+
|
|
20
|
+
Copyright (c) 2010-2026 three.js authors. https://github.com/mrdoob/three.js
|
|
21
|
+
Adapted in `src/utils/Reflector2.ts` (from `examples/jsm/objects/Reflector.js`) and
|
|
22
|
+
`src/utils/shaders/seperableBlurShaderMasked.glsl` (separable Gaussian blur of
|
|
23
|
+
`examples/jsm/postprocessing/UnrealBloomPass.js`).
|
|
24
|
+
|
|
25
|
+
## Playdead temporal reprojection (MIT License)
|
|
26
|
+
|
|
27
|
+
Copyright (c) 2015 Playdead. https://github.com/playdeadgames/temporal
|
|
28
|
+
Adapted in `src/utils/shaders/temporalaa.glsl` (closest-depth search, `clip_aabb` and the
|
|
29
|
+
luminance-weighted feedback of `TemporalReprojection.shader`).
|
|
30
|
+
|
|
31
|
+
## rand-seed (MIT License)
|
|
32
|
+
|
|
33
|
+
Copyright (c) 2023 Michael Dzjaparidze. https://github.com/michaeldzjap/rand-seed
|
|
34
|
+
Bundled into the distribution files (`RandomizedDirectionalLight`).
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## MIT License
|
|
39
|
+
|
|
40
|
+
Applies to three.js, Playdead temporal reprojection and rand-seed, with the copyright lines above.
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
44
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
45
|
+
in the Software without restriction, including without limitation the rights
|
|
46
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
47
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
48
|
+
furnished to do so, subject to the following conditions:
|
|
49
|
+
|
|
50
|
+
The above copyright notice and this permission notice shall be included in all
|
|
51
|
+
copies or substantial portions of the Software.
|
|
52
|
+
|
|
53
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
54
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
55
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
56
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
57
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
58
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
59
|
+
SOFTWARE.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Apache License 2.0
|
|
63
|
+
|
|
64
|
+
Applies to Filament and Cycles, with the copyright lines above.
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
Apache License
|
|
68
|
+
Version 2.0, January 2004
|
|
69
|
+
http://www.apache.org/licenses/
|
|
70
|
+
|
|
71
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
72
|
+
|
|
73
|
+
1. Definitions.
|
|
74
|
+
|
|
75
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
76
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
77
|
+
|
|
78
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
79
|
+
the copyright owner that is granting the License.
|
|
80
|
+
|
|
81
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
82
|
+
other entities that control, are controlled by, or are under common
|
|
83
|
+
control with that entity. For the purposes of this definition,
|
|
84
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
85
|
+
direction or management of such entity, whether by contract or
|
|
86
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
87
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
88
|
+
|
|
89
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
90
|
+
exercising permissions granted by this License.
|
|
91
|
+
|
|
92
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
93
|
+
including but not limited to software source code, documentation
|
|
94
|
+
source, and configuration files.
|
|
95
|
+
|
|
96
|
+
"Object" form shall mean any form resulting from mechanical
|
|
97
|
+
transformation or translation of a Source form, including but
|
|
98
|
+
not limited to compiled object code, generated documentation,
|
|
99
|
+
and conversions to other media types.
|
|
100
|
+
|
|
101
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
102
|
+
Object form, made available under the License, as indicated by a
|
|
103
|
+
copyright notice that is included in or attached to the work
|
|
104
|
+
(an example is provided in the Appendix below).
|
|
105
|
+
|
|
106
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
107
|
+
form, that is based on (or derived from) the Work and for which the
|
|
108
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
109
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
110
|
+
of this License, Derivative Works shall not include works that remain
|
|
111
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
112
|
+
the Work and Derivative Works thereof.
|
|
113
|
+
|
|
114
|
+
"Contribution" shall mean any work of authorship, including
|
|
115
|
+
the original version of the Work and any modifications or additions
|
|
116
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
117
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
118
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
119
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
120
|
+
means any form of electronic, verbal, or written communication sent
|
|
121
|
+
to the Licensor or its representatives, including but not limited to
|
|
122
|
+
communication on electronic mailing lists, source code control systems,
|
|
123
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
124
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
125
|
+
excluding communication that is conspicuously marked or otherwise
|
|
126
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
127
|
+
|
|
128
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
129
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
130
|
+
subsequently incorporated within the Work.
|
|
131
|
+
|
|
132
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
133
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
134
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
135
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
136
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
137
|
+
Work and such Derivative Works in Source or Object form.
|
|
138
|
+
|
|
139
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
140
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
141
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
142
|
+
(except as stated in this section) patent license to make, have made,
|
|
143
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
144
|
+
where such license applies only to those patent claims licensable
|
|
145
|
+
by such Contributor that are necessarily infringed by their
|
|
146
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
147
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
148
|
+
institute patent litigation against any entity (including a
|
|
149
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
150
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
151
|
+
or contributory patent infringement, then any patent licenses
|
|
152
|
+
granted to You under this License for that Work shall terminate
|
|
153
|
+
as of the date such litigation is filed.
|
|
154
|
+
|
|
155
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
156
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
157
|
+
modifications, and in Source or Object form, provided that You
|
|
158
|
+
meet the following conditions:
|
|
159
|
+
|
|
160
|
+
(a) You must give any other recipients of the Work or
|
|
161
|
+
Derivative Works a copy of this License; and
|
|
162
|
+
|
|
163
|
+
(b) You must cause any modified files to carry prominent notices
|
|
164
|
+
stating that You changed the files; and
|
|
165
|
+
|
|
166
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
167
|
+
that You distribute, all copyright, patent, trademark, and
|
|
168
|
+
attribution notices from the Source form of the Work,
|
|
169
|
+
excluding those notices that do not pertain to any part of
|
|
170
|
+
the Derivative Works; and
|
|
171
|
+
|
|
172
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
173
|
+
distribution, then any Derivative Works that You distribute must
|
|
174
|
+
include a readable copy of the attribution notices contained
|
|
175
|
+
within such NOTICE file, excluding those notices that do not
|
|
176
|
+
pertain to any part of the Derivative Works, in at least one
|
|
177
|
+
of the following places: within a NOTICE text file distributed
|
|
178
|
+
as part of the Derivative Works; within the Source form or
|
|
179
|
+
documentation, if provided along with the Derivative Works; or,
|
|
180
|
+
within a display generated by the Derivative Works, if and
|
|
181
|
+
wherever such third-party notices normally appear. The contents
|
|
182
|
+
of the NOTICE file are for informational purposes only and
|
|
183
|
+
do not modify the License. You may add Your own attribution
|
|
184
|
+
notices within Derivative Works that You distribute, alongside
|
|
185
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
186
|
+
that such additional attribution notices cannot be construed
|
|
187
|
+
as modifying the License.
|
|
188
|
+
|
|
189
|
+
You may add Your own copyright statement to Your modifications and
|
|
190
|
+
may provide additional or different license terms and conditions
|
|
191
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
192
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
193
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
194
|
+
the conditions stated in this License.
|
|
195
|
+
|
|
196
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
197
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
198
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
199
|
+
this License, without any additional terms or conditions.
|
|
200
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
201
|
+
the terms of any separate license agreement you may have executed
|
|
202
|
+
with Licensor regarding such Contributions.
|
|
203
|
+
|
|
204
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
205
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
206
|
+
except as required for reasonable and customary use in describing the
|
|
207
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
208
|
+
|
|
209
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
210
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
211
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
212
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
213
|
+
implied, including, without limitation, any warranties or conditions
|
|
214
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
215
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
216
|
+
appropriateness of using or redistributing the Work and assume any
|
|
217
|
+
risks associated with Your exercise of permissions under this License.
|
|
218
|
+
|
|
219
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
220
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
221
|
+
unless required by applicable law (such as deliberate and grossly
|
|
222
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
223
|
+
liable to You for damages, including any direct, indirect, special,
|
|
224
|
+
incidental, or consequential damages of any character arising as a
|
|
225
|
+
result of this License or out of the use or inability to use the
|
|
226
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
227
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
228
|
+
other commercial damages or losses), even if such Contributor
|
|
229
|
+
has been advised of the possibility of such damages.
|
|
230
|
+
|
|
231
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
232
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
233
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
234
|
+
or other liability obligations and/or rights consistent with this
|
|
235
|
+
License. However, in accepting such obligations, You may act only
|
|
236
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
237
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
238
|
+
defend, and hold each Contributor harmless for any liability
|
|
239
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
240
|
+
of your accepting any such warranty or additional liability.
|
|
241
|
+
|
|
242
|
+
END OF TERMS AND CONDITIONS
|
|
243
|
+
```
|
package/dist/dependencies.txt
CHANGED
|
@@ -6,7 +6,7 @@ Description: A small library for generating random numbers
|
|
|
6
6
|
Repository: git+https://github.com/michaeldzjap/rand-seed.git
|
|
7
7
|
Homepage: https://github.com/michaeldzjap/rand-seed#readme
|
|
8
8
|
Author: Michael Dzjaparidze
|
|
9
|
-
License
|
|
9
|
+
License Text:
|
|
10
10
|
===
|
|
11
11
|
|
|
12
12
|
MIT License
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './plugins';
|
|
1
|
+
export * from './plugins/index.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|