babylonjs-post-process 8.56.2 → 9.1.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/babylon.asciiArtPostProcess.js +1 -1
- package/babylon.asciiArtPostProcess.min.js +1 -1
- package/babylon.asciiArtPostProcess.min.js.map +1 -1
- package/babylon.digitalRainPostProcess.js +1 -1
- package/babylon.digitalRainPostProcess.min.js +1 -1
- package/babylon.digitalRainPostProcess.min.js.map +1 -1
- package/babylonjs.postProcess.d.ts +293 -1
- package/babylonjs.postProcess.js +1 -1
- package/babylonjs.postProcess.min.js +1 -1
- package/babylonjs.postProcess.min.js.map +1 -1
- package/babylonjs.postProcess.module.d.ts +631 -2
- package/config.json +2 -2
- package/package.json +3 -2
- package/readme.md +19 -30
- package/src/asciiArt.ts +1 -1
- package/src/digitalRain.ts +1 -1
- package/src/index.ts +1 -1
- package/tsconfig.build.json +4 -3
- package/tsconfig.json +2 -2
- package/webpack.config.js +23 -24
package/readme.md
CHANGED
|
@@ -1,53 +1,42 @@
|
|
|
1
|
-
Babylon.js Post Processes Library
|
|
2
|
-
=====================
|
|
1
|
+
# Babylon.js Post Processes Library
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
> We recommend using the [ES6 package `@babylonjs/post-processes`](https://www.npmjs.com/package/@babylonjs/post-processes) for new projects.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
For usage documentation please visit the [post process library documentation](https://doc.babylonjs.com/toolsAndResources/assetLibraries/postProcessLibrary/).
|
|
7
6
|
|
|
8
|
-
##
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### CDN
|
|
9
10
|
|
|
10
11
|
> ⚠️ WARNING: The CDN should not be used in production environments. The purpose of our CDN is to serve Babylon packages to users learning how to use the platform or running small experiments. Once you've built an application and are ready to share it with the world at large, you should serve all packages from your own CDN.
|
|
11
12
|
|
|
12
13
|
Compiled js files (minified and source) are offered on our public CDN here:
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
- https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.js
|
|
16
|
+
- https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.min.js
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
### NPM
|
|
18
19
|
|
|
19
|
-
To install using npm
|
|
20
|
+
To install using npm:
|
|
20
21
|
|
|
21
|
-
```
|
|
22
|
-
npm install
|
|
22
|
+
```bash
|
|
23
|
+
npm install babylonjs babylonjs-post-process
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
If using TypeScript, the typing needs to be added to tsconfig.json:
|
|
26
27
|
|
|
27
|
-
```
|
|
28
|
-
....
|
|
28
|
+
```json
|
|
29
29
|
"types": [
|
|
30
30
|
"babylonjs",
|
|
31
|
-
"babylonjs-post-process"
|
|
32
|
-
|
|
33
|
-
],
|
|
34
|
-
....
|
|
31
|
+
"babylonjs-post-process"
|
|
32
|
+
]
|
|
35
33
|
```
|
|
36
34
|
|
|
37
35
|
Afterwards it can be imported to the project using:
|
|
38
36
|
|
|
39
|
-
```
|
|
40
|
-
import * as BABYLON from
|
|
41
|
-
import
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
This will extend Babylon's namespace with the post processes available:
|
|
37
|
+
```javascript
|
|
38
|
+
import * as BABYLON from "babylonjs";
|
|
39
|
+
import "babylonjs-post-process";
|
|
45
40
|
|
|
41
|
+
const postProcess = new BABYLON.AsciiArtPostProcess("AsciiArt", camera);
|
|
46
42
|
```
|
|
47
|
-
// Some awesome code
|
|
48
|
-
// Creates the post process
|
|
49
|
-
let postProcess = new BABYLON.AsciiArtPostProcess("AsciiArt", camera);
|
|
50
|
-
// Some more awesome code
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Using webpack to package your project will use the minified js file.
|
package/src/asciiArt.ts
CHANGED
package/src/digitalRain.ts
CHANGED
package/src/index.ts
CHANGED
package/tsconfig.build.json
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
"outDir": "./dist",
|
|
6
6
|
"rootDir": "../../../",
|
|
7
7
|
"target": "ES5",
|
|
8
|
+
"ignoreDeprecations": "6.0",
|
|
8
9
|
"declaration": false,
|
|
9
10
|
"importHelpers": true,
|
|
10
11
|
"paths": {
|
|
11
|
-
"core/*": ["dev/core/dist/*"],
|
|
12
|
-
"post-processes/*": ["dev/postProcesses/src/*"],
|
|
13
|
-
"@lts/post-processes/*": ["lts/postProcesses/src/*"]
|
|
12
|
+
"core/*": ["../../../dev/core/dist/*"],
|
|
13
|
+
"post-processes/*": ["../../../dev/postProcesses/src/*"],
|
|
14
|
+
"@lts/post-processes/*": ["../../../lts/postProcesses/src/*"]
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
17
|
"include": ["./src/**/*", "../../../dev/postProcesses/src/**/*", "../../../lts/postProcesses/src/**/*"]
|
package/tsconfig.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"paths": {
|
|
6
|
-
"post-processes/*": ["dev/postProcesses/src/*"],
|
|
7
|
-
"@lts/post-processes/*": ["lts/postProcesses/src/*"],
|
|
6
|
+
"post-processes/*": ["../../../dev/postProcesses/src/*"],
|
|
7
|
+
"@lts/post-processes/*": ["../../../lts/postProcesses/src/*"],
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
|
|
2
|
-
const path = require("path");
|
|
3
|
-
module.exports = (env) => {
|
|
4
|
-
const commonConfig = commonConfigGenerator({
|
|
5
|
-
mode: env.production ? "production" : "development",
|
|
6
|
-
devPackageName: "post-processes",
|
|
7
|
-
namespace: "POSTPROCESSES",
|
|
8
|
-
outputPath: path.resolve(__dirname),
|
|
9
|
-
entryPoints: {
|
|
10
|
-
postProcess: "./src/index.ts",
|
|
11
|
-
asciiArt: "./src/asciiArt.ts",
|
|
12
|
-
digitalRain: "./src/digitalRain.ts",
|
|
13
|
-
},
|
|
14
|
-
alias: {
|
|
15
|
-
"post-processes": path.resolve(__dirname, "../../../dev/postProcesses/src"),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
1
|
+
const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
|
|
2
|
+
const path = require("path");
|
|
3
|
+
module.exports = (env) => {
|
|
4
|
+
const commonConfig = commonConfigGenerator({
|
|
5
|
+
mode: env.production ? "production" : "development",
|
|
6
|
+
devPackageName: "post-processes",
|
|
7
|
+
namespace: "POSTPROCESSES",
|
|
8
|
+
outputPath: path.resolve(__dirname),
|
|
9
|
+
entryPoints: {
|
|
10
|
+
postProcess: "./src/index.ts",
|
|
11
|
+
asciiArt: "./src/asciiArt.ts",
|
|
12
|
+
digitalRain: "./src/digitalRain.ts",
|
|
13
|
+
},
|
|
14
|
+
alias: {
|
|
15
|
+
"post-processes": path.resolve(__dirname, "../../../dev/postProcesses/src"),
|
|
16
|
+
},
|
|
17
|
+
overrideFilename: (pathData) => {
|
|
18
|
+
return pathData.chunk.name === "postProcess" ? `babylonjs.[name]${env.production ? ".min" : ""}.js` : `babylon.[name]PostProcess${env.production ? ".min" : ""}.js`;
|
|
19
|
+
},
|
|
20
|
+
minToMax: true,
|
|
21
|
+
});
|
|
22
|
+
return commonConfig;
|
|
23
|
+
};
|