babylonjs-materials 9.22.2 → 9.23.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.cellMaterial.js +1 -1
- package/babylon.cellMaterial.js.map +1 -1
- package/babylon.cellMaterial.min.js +1 -1
- package/babylon.cellMaterial.min.js.map +1 -1
- package/babylon.fireMaterial.js +1 -1
- package/babylon.fireMaterial.js.map +1 -1
- package/babylon.fireMaterial.min.js +1 -1
- package/babylon.fireMaterial.min.js.map +1 -1
- package/babylon.furMaterial.js +1 -1
- package/babylon.furMaterial.js.map +1 -1
- package/babylon.furMaterial.min.js +1 -1
- package/babylon.furMaterial.min.js.map +1 -1
- package/babylon.gradientMaterial.js +1 -1
- package/babylon.gradientMaterial.js.map +1 -1
- package/babylon.gradientMaterial.min.js +1 -1
- package/babylon.gradientMaterial.min.js.map +1 -1
- package/babylon.gridMaterial.js +1 -1
- package/babylon.gridMaterial.js.map +1 -1
- package/babylon.gridMaterial.min.js +1 -1
- package/babylon.gridMaterial.min.js.map +1 -1
- package/babylon.lavaMaterial.js +1 -1
- package/babylon.lavaMaterial.js.map +1 -1
- package/babylon.lavaMaterial.min.js +1 -1
- package/babylon.lavaMaterial.min.js.map +1 -1
- package/babylon.mixMaterial.js +1 -1
- package/babylon.mixMaterial.js.map +1 -1
- package/babylon.mixMaterial.min.js +1 -1
- package/babylon.mixMaterial.min.js.map +1 -1
- package/babylon.normalMaterial.js +1 -1
- package/babylon.normalMaterial.js.map +1 -1
- package/babylon.normalMaterial.min.js +1 -1
- package/babylon.normalMaterial.min.js.map +1 -1
- package/babylon.shadowOnlyMaterial.js +1 -1
- package/babylon.shadowOnlyMaterial.js.map +1 -1
- package/babylon.shadowOnlyMaterial.min.js +1 -1
- package/babylon.shadowOnlyMaterial.min.js.map +1 -1
- package/babylon.simpleMaterial.js +1 -1
- package/babylon.simpleMaterial.js.map +1 -1
- package/babylon.simpleMaterial.min.js +1 -1
- package/babylon.simpleMaterial.min.js.map +1 -1
- package/babylon.skyMaterial.js +1 -1
- package/babylon.skyMaterial.js.map +1 -1
- package/babylon.skyMaterial.min.js +1 -1
- package/babylon.skyMaterial.min.js.map +1 -1
- package/babylon.terrainMaterial.js +1 -1
- package/babylon.terrainMaterial.js.map +1 -1
- package/babylon.terrainMaterial.min.js +1 -1
- package/babylon.terrainMaterial.min.js.map +1 -1
- package/babylon.triPlanarMaterial.js +1 -1
- package/babylon.triPlanarMaterial.js.map +1 -1
- package/babylon.triPlanarMaterial.min.js +1 -1
- package/babylon.triPlanarMaterial.min.js.map +1 -1
- package/babylon.waterMaterial.js +1 -1
- package/babylon.waterMaterial.js.map +1 -1
- package/babylon.waterMaterial.min.js +1 -1
- package/babylon.waterMaterial.min.js.map +1 -1
- package/babylonjs.materials.d.ts +14 -14
- package/babylonjs.materials.es5.js +2533 -0
- package/babylonjs.materials.js +1 -1
- package/babylonjs.materials.js.map +1 -1
- package/babylonjs.materials.min.js +1 -1
- package/babylonjs.materials.min.js.map +1 -1
- package/babylonjs.materials.module.d.ts +28 -28
- package/package.json +2 -2
- package/rollup.config.umd.mjs +1 -0
|
@@ -121,7 +121,7 @@ export class WaterMaterial extends PushMaterial {
|
|
|
121
121
|
private _offsetMirror;
|
|
122
122
|
private _tempPlane;
|
|
123
123
|
private _lastTime;
|
|
124
|
-
private
|
|
124
|
+
private static readonly _ShaderLoader;
|
|
125
125
|
private _lastDeltaTime;
|
|
126
126
|
private _waitingRenderList;
|
|
127
127
|
private _imageProcessingConfiguration;
|
|
@@ -248,7 +248,7 @@ export class TriPlanarMaterial extends PushMaterial {
|
|
|
248
248
|
accessor disableLighting: boolean;
|
|
249
249
|
private _maxSimultaneousLights;
|
|
250
250
|
accessor maxSimultaneousLights: number;
|
|
251
|
-
private
|
|
251
|
+
private static readonly _ShaderLoader;
|
|
252
252
|
/**
|
|
253
253
|
* Instantiates a TriPlanar Material in the given scene
|
|
254
254
|
* @param name The friendly name of the material
|
|
@@ -326,7 +326,7 @@ export class TerrainMaterial extends PushMaterial {
|
|
|
326
326
|
accessor disableLighting: boolean;
|
|
327
327
|
private _maxSimultaneousLights;
|
|
328
328
|
accessor maxSimultaneousLights: number;
|
|
329
|
-
private
|
|
329
|
+
private static readonly _ShaderLoader;
|
|
330
330
|
/**
|
|
331
331
|
* Instantiates a Terrain Material in the given scene
|
|
332
332
|
* @param name The friendly name of the material
|
|
@@ -460,7 +460,7 @@ export class SkyMaterial extends PushMaterial {
|
|
|
460
460
|
dithering: boolean;
|
|
461
461
|
private _cameraPosition;
|
|
462
462
|
private _skyOrientation;
|
|
463
|
-
private
|
|
463
|
+
private static readonly _ShaderLoader;
|
|
464
464
|
/**
|
|
465
465
|
* Instantiates a new sky material.
|
|
466
466
|
* This material allows to create dynamic and texture free
|
|
@@ -594,7 +594,7 @@ export class SimpleMaterial extends PushMaterial {
|
|
|
594
594
|
accessor disableLighting: boolean;
|
|
595
595
|
private _maxSimultaneousLights;
|
|
596
596
|
accessor maxSimultaneousLights: number;
|
|
597
|
-
private
|
|
597
|
+
private static readonly _ShaderLoader;
|
|
598
598
|
/**
|
|
599
599
|
* Instantiates a Simple Material in the given scene
|
|
600
600
|
* @param name The friendly name of the material
|
|
@@ -668,7 +668,7 @@ import { Scene } from "babylonjs/scene";
|
|
|
668
668
|
export class ShadowOnlyMaterial extends PushMaterial {
|
|
669
669
|
private _activeLight;
|
|
670
670
|
private _needAlphaBlending;
|
|
671
|
-
private
|
|
671
|
+
private static readonly _ShaderLoader;
|
|
672
672
|
/**
|
|
673
673
|
* Instantiates a ShadowOnly Material in the given scene
|
|
674
674
|
* @param name The friendly name of the material
|
|
@@ -747,7 +747,7 @@ export class NormalMaterial extends PushMaterial {
|
|
|
747
747
|
accessor disableLighting: boolean;
|
|
748
748
|
private _maxSimultaneousLights;
|
|
749
749
|
accessor maxSimultaneousLights: number;
|
|
750
|
-
private
|
|
750
|
+
private static readonly _ShaderLoader;
|
|
751
751
|
/**
|
|
752
752
|
* Instantiates a Normal Material in the given scene
|
|
753
753
|
* @param name The friendly name of the material
|
|
@@ -857,7 +857,7 @@ export class MixMaterial extends PushMaterial {
|
|
|
857
857
|
accessor disableLighting: boolean;
|
|
858
858
|
private _maxSimultaneousLights;
|
|
859
859
|
accessor maxSimultaneousLights: number;
|
|
860
|
-
private
|
|
860
|
+
private static readonly _ShaderLoader;
|
|
861
861
|
/**
|
|
862
862
|
* Instantiates a Mix Material in the given scene
|
|
863
863
|
* @param name The friendly name of the material
|
|
@@ -1010,7 +1010,7 @@ export class LavaMaterial extends PushMaterial {
|
|
|
1010
1010
|
private _maxSimultaneousLights;
|
|
1011
1011
|
accessor maxSimultaneousLights: number;
|
|
1012
1012
|
private _scaledDiffuse;
|
|
1013
|
-
private
|
|
1013
|
+
private static readonly _ShaderLoader;
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Instantiates a Lava Material in the given scene
|
|
1016
1016
|
* @param name The friendly name of the material
|
|
@@ -1183,7 +1183,7 @@ export class GridMaterial extends PushMaterial {
|
|
|
1183
1183
|
* @param forceGLSL Use the GLSL code generation for the shader (even on WebGPU). Default is false
|
|
1184
1184
|
*/
|
|
1185
1185
|
constructor(name: string, scene?: Scene, forceGLSL?: boolean);
|
|
1186
|
-
private
|
|
1186
|
+
private static readonly _ShaderLoader;
|
|
1187
1187
|
/**
|
|
1188
1188
|
* @returns whether or not the grid requires alpha blending.
|
|
1189
1189
|
*/
|
|
@@ -1269,7 +1269,7 @@ export class GradientMaterial extends PushMaterial {
|
|
|
1269
1269
|
smoothness: number;
|
|
1270
1270
|
private _disableLighting;
|
|
1271
1271
|
accessor disableLighting: boolean;
|
|
1272
|
-
private
|
|
1272
|
+
private static readonly _ShaderLoader;
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Instantiates a Gradient Material in the given scene
|
|
1275
1275
|
* @param name The friendly name of the material
|
|
@@ -1362,7 +1362,7 @@ export class FurMaterial extends PushMaterial {
|
|
|
1362
1362
|
highLevelFur: boolean;
|
|
1363
1363
|
_meshes: AbstractMesh[];
|
|
1364
1364
|
private _furTime;
|
|
1365
|
-
private
|
|
1365
|
+
private static readonly _ShaderLoader;
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Instantiates a Fur Material in the given scene
|
|
1368
1368
|
* @param name The friendly name of the material
|
|
@@ -1449,7 +1449,7 @@ export class FireMaterial extends PushMaterial {
|
|
|
1449
1449
|
speed: number;
|
|
1450
1450
|
private _scaledDiffuse;
|
|
1451
1451
|
private _lastTime;
|
|
1452
|
-
private
|
|
1452
|
+
private static readonly _ShaderLoader;
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Instantiates a Fire Material in the given scene
|
|
1455
1455
|
* @param name The friendly name of the material
|
|
@@ -2128,7 +2128,7 @@ export class CellMaterial extends PushMaterial {
|
|
|
2128
2128
|
accessor disableLighting: boolean;
|
|
2129
2129
|
private _maxSimultaneousLights;
|
|
2130
2130
|
accessor maxSimultaneousLights: number;
|
|
2131
|
-
private
|
|
2131
|
+
private static readonly _ShaderLoader;
|
|
2132
2132
|
/**
|
|
2133
2133
|
* Instantiates a Cell Material in the given scene
|
|
2134
2134
|
* @param name The friendly name of the material
|
|
@@ -2283,7 +2283,7 @@ declare namespace BABYLON {
|
|
|
2283
2283
|
private _offsetMirror;
|
|
2284
2284
|
private _tempPlane;
|
|
2285
2285
|
private _lastTime;
|
|
2286
|
-
private
|
|
2286
|
+
private static readonly _ShaderLoader;
|
|
2287
2287
|
private _lastDeltaTime;
|
|
2288
2288
|
private _waitingRenderList;
|
|
2289
2289
|
private _imageProcessingConfiguration;
|
|
@@ -2391,7 +2391,7 @@ declare namespace BABYLON {
|
|
|
2391
2391
|
accessor disableLighting: boolean;
|
|
2392
2392
|
private _maxSimultaneousLights;
|
|
2393
2393
|
accessor maxSimultaneousLights: number;
|
|
2394
|
-
private
|
|
2394
|
+
private static readonly _ShaderLoader;
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Instantiates a TriPlanar Material in the given scene
|
|
2397
2397
|
* @param name The friendly name of the material
|
|
@@ -2453,7 +2453,7 @@ declare namespace BABYLON {
|
|
|
2453
2453
|
accessor disableLighting: boolean;
|
|
2454
2454
|
private _maxSimultaneousLights;
|
|
2455
2455
|
accessor maxSimultaneousLights: number;
|
|
2456
|
-
private
|
|
2456
|
+
private static readonly _ShaderLoader;
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Instantiates a Terrain Material in the given scene
|
|
2459
2459
|
* @param name The friendly name of the material
|
|
@@ -2571,7 +2571,7 @@ declare namespace BABYLON {
|
|
|
2571
2571
|
dithering: boolean;
|
|
2572
2572
|
private _cameraPosition;
|
|
2573
2573
|
private _skyOrientation;
|
|
2574
|
-
private
|
|
2574
|
+
private static readonly _ShaderLoader;
|
|
2575
2575
|
/**
|
|
2576
2576
|
* Instantiates a new sky material.
|
|
2577
2577
|
* This material allows to create dynamic and texture free
|
|
@@ -2688,7 +2688,7 @@ declare namespace BABYLON {
|
|
|
2688
2688
|
accessor disableLighting: boolean;
|
|
2689
2689
|
private _maxSimultaneousLights;
|
|
2690
2690
|
accessor maxSimultaneousLights: number;
|
|
2691
|
-
private
|
|
2691
|
+
private static readonly _ShaderLoader;
|
|
2692
2692
|
/**
|
|
2693
2693
|
* Instantiates a Simple Material in the given scene
|
|
2694
2694
|
* @param name The friendly name of the material
|
|
@@ -2745,7 +2745,7 @@ declare namespace BABYLON {
|
|
|
2745
2745
|
export class ShadowOnlyMaterial extends PushMaterial {
|
|
2746
2746
|
private _activeLight;
|
|
2747
2747
|
private _needAlphaBlending;
|
|
2748
|
-
private
|
|
2748
|
+
private static readonly _ShaderLoader;
|
|
2749
2749
|
/**
|
|
2750
2750
|
* Instantiates a ShadowOnly Material in the given scene
|
|
2751
2751
|
* @param name The friendly name of the material
|
|
@@ -2807,7 +2807,7 @@ declare namespace BABYLON {
|
|
|
2807
2807
|
accessor disableLighting: boolean;
|
|
2808
2808
|
private _maxSimultaneousLights;
|
|
2809
2809
|
accessor maxSimultaneousLights: number;
|
|
2810
|
-
private
|
|
2810
|
+
private static readonly _ShaderLoader;
|
|
2811
2811
|
/**
|
|
2812
2812
|
* Instantiates a Normal Material in the given scene
|
|
2813
2813
|
* @param name The friendly name of the material
|
|
@@ -2899,7 +2899,7 @@ declare namespace BABYLON {
|
|
|
2899
2899
|
accessor disableLighting: boolean;
|
|
2900
2900
|
private _maxSimultaneousLights;
|
|
2901
2901
|
accessor maxSimultaneousLights: number;
|
|
2902
|
-
private
|
|
2902
|
+
private static readonly _ShaderLoader;
|
|
2903
2903
|
/**
|
|
2904
2904
|
* Instantiates a Mix Material in the given scene
|
|
2905
2905
|
* @param name The friendly name of the material
|
|
@@ -3001,7 +3001,7 @@ declare namespace BABYLON {
|
|
|
3001
3001
|
private _maxSimultaneousLights;
|
|
3002
3002
|
accessor maxSimultaneousLights: number;
|
|
3003
3003
|
private _scaledDiffuse;
|
|
3004
|
-
private
|
|
3004
|
+
private static readonly _ShaderLoader;
|
|
3005
3005
|
/**
|
|
3006
3006
|
* Instantiates a Lava Material in the given scene
|
|
3007
3007
|
* @param name The friendly name of the material
|
|
@@ -3156,7 +3156,7 @@ declare namespace BABYLON {
|
|
|
3156
3156
|
* @param forceGLSL Use the GLSL code generation for the shader (even on WebGPU). Default is false
|
|
3157
3157
|
*/
|
|
3158
3158
|
constructor(name: string, scene?: Scene, forceGLSL?: boolean);
|
|
3159
|
-
private
|
|
3159
|
+
private static readonly _ShaderLoader;
|
|
3160
3160
|
/**
|
|
3161
3161
|
* @returns whether or not the grid requires alpha blending.
|
|
3162
3162
|
*/
|
|
@@ -3225,7 +3225,7 @@ declare namespace BABYLON {
|
|
|
3225
3225
|
smoothness: number;
|
|
3226
3226
|
private _disableLighting;
|
|
3227
3227
|
accessor disableLighting: boolean;
|
|
3228
|
-
private
|
|
3228
|
+
private static readonly _ShaderLoader;
|
|
3229
3229
|
/**
|
|
3230
3230
|
* Instantiates a Gradient Material in the given scene
|
|
3231
3231
|
* @param name The friendly name of the material
|
|
@@ -3300,7 +3300,7 @@ declare namespace BABYLON {
|
|
|
3300
3300
|
highLevelFur: boolean;
|
|
3301
3301
|
_meshes: AbstractMesh[];
|
|
3302
3302
|
private _furTime;
|
|
3303
|
-
private
|
|
3303
|
+
private static readonly _ShaderLoader;
|
|
3304
3304
|
/**
|
|
3305
3305
|
* Instantiates a Fur Material in the given scene
|
|
3306
3306
|
* @param name The friendly name of the material
|
|
@@ -3370,7 +3370,7 @@ declare namespace BABYLON {
|
|
|
3370
3370
|
speed: number;
|
|
3371
3371
|
private _scaledDiffuse;
|
|
3372
3372
|
private _lastTime;
|
|
3373
|
-
private
|
|
3373
|
+
private static readonly _ShaderLoader;
|
|
3374
3374
|
/**
|
|
3375
3375
|
* Instantiates a Fire Material in the given scene
|
|
3376
3376
|
* @param name The friendly name of the material
|
|
@@ -4006,7 +4006,7 @@ declare namespace BABYLON {
|
|
|
4006
4006
|
accessor disableLighting: boolean;
|
|
4007
4007
|
private _maxSimultaneousLights;
|
|
4008
4008
|
accessor maxSimultaneousLights: number;
|
|
4009
|
-
private
|
|
4009
|
+
private static readonly _ShaderLoader;
|
|
4010
4010
|
/**
|
|
4011
4011
|
* Instantiates a Cell Material in the given scene
|
|
4012
4012
|
* @param name The friendly name of the material
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-materials",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.23.0",
|
|
4
4
|
"main": "babylonjs.materials.min.js",
|
|
5
5
|
"types": "babylonjs.materials.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test:escheck": "es-check es6 ./babylonjs.materials.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"babylonjs": "9.
|
|
19
|
+
"babylonjs": "9.23.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|
package/rollup.config.umd.mjs
CHANGED
|
@@ -34,4 +34,5 @@ export default commonUMDRollupConfiguration({
|
|
|
34
34
|
overrideFilename: (pathData) =>
|
|
35
35
|
pathData.chunk.name === "materials" ? `babylonjs.materials${production ? ".min" : ""}.js` : `babylon.${pathData.chunk.name}Material${production ? ".min" : ""}.js`,
|
|
36
36
|
minToMax: true,
|
|
37
|
+
es5EntryPoint: "materials",
|
|
37
38
|
});
|