babylonjs-procedural-textures 6.8.0 → 6.9.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/.npmignore +5 -0
- package/babylon.brickProceduralTexture.js +0 -1
- package/babylon.brickProceduralTexture.js.map +1 -1
- package/babylon.brickProceduralTexture.min.js.map +1 -1
- package/babylon.cloudProceduralTexture.js +0 -1
- package/babylon.cloudProceduralTexture.js.map +1 -1
- package/babylon.cloudProceduralTexture.min.js.map +1 -1
- package/babylon.fireProceduralTexture.js +0 -1
- package/babylon.fireProceduralTexture.js.map +1 -1
- package/babylon.fireProceduralTexture.min.js.map +1 -1
- package/babylon.grassProceduralTexture.js +0 -1
- package/babylon.grassProceduralTexture.js.map +1 -1
- package/babylon.grassProceduralTexture.min.js.map +1 -1
- package/babylon.marbleProceduralTexture.js +0 -1
- package/babylon.marbleProceduralTexture.js.map +1 -1
- package/babylon.marbleProceduralTexture.min.js.map +1 -1
- package/babylon.normalMapProceduralTexture.js +0 -1
- package/babylon.normalMapProceduralTexture.js.map +1 -1
- package/babylon.normalMapProceduralTexture.min.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.js +0 -1
- package/babylon.perlinNoiseProceduralTexture.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.min.js.map +1 -1
- package/babylon.roadProceduralTexture.js +0 -1
- package/babylon.roadProceduralTexture.js.map +1 -1
- package/babylon.roadProceduralTexture.min.js.map +1 -1
- package/babylon.starfieldProceduralTexture.js +0 -1
- package/babylon.starfieldProceduralTexture.js.map +1 -1
- package/babylon.starfieldProceduralTexture.min.js.map +1 -1
- package/babylon.woodProceduralTexture.js +0 -1
- package/babylon.woodProceduralTexture.js.map +1 -1
- package/babylon.woodProceduralTexture.min.js.map +1 -1
- package/babylonjs.proceduralTextures.js +0 -10
- package/babylonjs.proceduralTextures.js.map +1 -1
- package/babylonjs.proceduralTextures.min.js.map +1 -1
- package/config.json +6 -0
- package/package.json +2 -4
- package/src/brick.ts +15 -0
- package/src/cloud.ts +15 -0
- package/src/fire.ts +15 -0
- package/src/grass.ts +15 -0
- package/src/index.ts +3 -0
- package/src/marble.ts +15 -0
- package/src/normalMap.ts +15 -0
- package/src/perlinNoise.ts +15 -0
- package/src/road.ts +15 -0
- package/src/starfield.ts +15 -0
- package/src/wood.ts +15 -0
- package/tsconfig.build.json +13 -0
- package/tsconfig.json +9 -0
- package/webpack.config.js +27 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
import * as proceduralTexture from "procedural-textures/perlinNoise/index";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This is the entry point for the UMD module.
|
|
6
|
+
* The entry point for a future ESM package should be index.ts
|
|
7
|
+
*/
|
|
8
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
|
9
|
+
if (typeof globalObject !== "undefined") {
|
|
10
|
+
for (const key in proceduralTexture) {
|
|
11
|
+
(<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export * from "procedural-textures/perlinNoise/index";
|
package/src/road.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
import * as proceduralTexture from "procedural-textures/road/index";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This is the entry point for the UMD module.
|
|
6
|
+
* The entry point for a future ESM package should be index.ts
|
|
7
|
+
*/
|
|
8
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
|
9
|
+
if (typeof globalObject !== "undefined") {
|
|
10
|
+
for (const key in proceduralTexture) {
|
|
11
|
+
(<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export * from "procedural-textures/road/index";
|
package/src/starfield.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
import * as proceduralTexture from "procedural-textures/starfield/index";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This is the entry point for the UMD module.
|
|
6
|
+
* The entry point for a future ESM package should be index.ts
|
|
7
|
+
*/
|
|
8
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
|
9
|
+
if (typeof globalObject !== "undefined") {
|
|
10
|
+
for (const key in proceduralTexture) {
|
|
11
|
+
(<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export * from "procedural-textures/starfield/index";
|
package/src/wood.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
import * as proceduralTexture from "procedural-textures/wood/index";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This is the entry point for the UMD module.
|
|
6
|
+
* The entry point for a future ESM package should be index.ts
|
|
7
|
+
*/
|
|
8
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
|
9
|
+
if (typeof globalObject !== "undefined") {
|
|
10
|
+
for (const key in proceduralTexture) {
|
|
11
|
+
(<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export * from "procedural-textures/wood/index";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.build.json",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"rootDir": "./src",
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"paths": {
|
|
9
|
+
"procedural-textures/*": ["lts/proceduralTextures/dist/*"],
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"include": ["./src/**/*"]
|
|
13
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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: "procedural-textures",
|
|
7
|
+
namespace: "PROCEDURALTEXTURES",
|
|
8
|
+
outputPath: path.resolve(__dirname),
|
|
9
|
+
entryPoints: {
|
|
10
|
+
proceduralTextures: "./src/index.ts",
|
|
11
|
+
brick: "./src/brick.ts",
|
|
12
|
+
cloud: "./src/cloud.ts",
|
|
13
|
+
fire: "./src/fire.ts",
|
|
14
|
+
grass: "./src/grass.ts",
|
|
15
|
+
marble: "./src/marble.ts",
|
|
16
|
+
normalMap: "./src/normalMap.ts",
|
|
17
|
+
perlinNoise: "./src/perlinNoise.ts",
|
|
18
|
+
road: "./src/road.ts",
|
|
19
|
+
starfield: "./src/starfield.ts",
|
|
20
|
+
wood: "./src/wood.ts",
|
|
21
|
+
},
|
|
22
|
+
overrideFilename: (pathData) => {
|
|
23
|
+
return pathData.chunk.name === "proceduralTextures" ? `babylonjs.[name]${env.production ? ".min" : ""}.js` : `babylon.[name]ProceduralTexture${env.production ? ".min" : ""}.js`;
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
return commonConfig;
|
|
27
|
+
};
|