babylonjs-materials 9.14.0 → 9.16.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.customMaterial.js +1 -1
- package/babylon.customMaterial.js.map +1 -1
- package/babylon.customMaterial.min.js +1 -1
- package/babylon.customMaterial.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 +60 -60
- 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 +120 -120
- package/package.json +2 -2
- package/tsconfig.build.json +1 -2
|
@@ -34,14 +34,14 @@ import "babylonjs/Rendering/boundingBoxRenderer";
|
|
|
34
34
|
export class WaterMaterial extends PushMaterial {
|
|
35
35
|
renderTargetSize: Vector2;
|
|
36
36
|
private _bumpTexture;
|
|
37
|
-
bumpTexture: BaseTexture;
|
|
37
|
+
accessor bumpTexture: BaseTexture;
|
|
38
38
|
diffuseColor: Color3;
|
|
39
39
|
specularColor: Color3;
|
|
40
40
|
specularPower: number;
|
|
41
41
|
private _disableLighting;
|
|
42
|
-
disableLighting: boolean;
|
|
42
|
+
accessor disableLighting: boolean;
|
|
43
43
|
private _maxSimultaneousLights;
|
|
44
|
-
maxSimultaneousLights: number;
|
|
44
|
+
accessor maxSimultaneousLights: number;
|
|
45
45
|
/**
|
|
46
46
|
* Defines the wind force.
|
|
47
47
|
*/
|
|
@@ -62,17 +62,17 @@ export class WaterMaterial extends PushMaterial {
|
|
|
62
62
|
* Defines wether or not: to add a smaller moving bump to less steady waves.
|
|
63
63
|
*/
|
|
64
64
|
private _bumpSuperimpose;
|
|
65
|
-
bumpSuperimpose: boolean;
|
|
65
|
+
accessor bumpSuperimpose: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Defines wether or not color refraction and reflection differently with .waterColor2 and .colorBlendFactor2. Non-linear (physically correct) fresnel.
|
|
68
68
|
*/
|
|
69
69
|
private _fresnelSeparate;
|
|
70
|
-
fresnelSeparate: boolean;
|
|
70
|
+
accessor fresnelSeparate: boolean;
|
|
71
71
|
/**
|
|
72
72
|
* Defines wether or not bump Wwves modify the reflection.
|
|
73
73
|
*/
|
|
74
74
|
private _bumpAffectsReflection;
|
|
75
|
-
bumpAffectsReflection: boolean;
|
|
75
|
+
accessor bumpAffectsReflection: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* Defines the water color blended with the refraction (near).
|
|
78
78
|
*/
|
|
@@ -112,7 +112,7 @@ export class WaterMaterial extends PushMaterial {
|
|
|
112
112
|
* You will probably need to set it to true if you are using instances or thin instances for your water objects.
|
|
113
113
|
*/
|
|
114
114
|
private _useWorldCoordinatesForWaveDeformation;
|
|
115
|
-
useWorldCoordinatesForWaveDeformation: boolean;
|
|
115
|
+
accessor useWorldCoordinatesForWaveDeformation: boolean;
|
|
116
116
|
protected _renderTargets: SmartArray<RenderTargetTexture>;
|
|
117
117
|
private _mesh;
|
|
118
118
|
private _refractionRTT;
|
|
@@ -229,25 +229,25 @@ import { Scene } from "babylonjs/scene";
|
|
|
229
229
|
export class TriPlanarMaterial extends PushMaterial {
|
|
230
230
|
mixTexture: BaseTexture;
|
|
231
231
|
private _diffuseTextureX;
|
|
232
|
-
diffuseTextureX: BaseTexture;
|
|
232
|
+
accessor diffuseTextureX: BaseTexture;
|
|
233
233
|
private _diffuseTextureY;
|
|
234
|
-
diffuseTextureY: BaseTexture;
|
|
234
|
+
accessor diffuseTextureY: BaseTexture;
|
|
235
235
|
private _diffuseTextureZ;
|
|
236
|
-
diffuseTextureZ: BaseTexture;
|
|
236
|
+
accessor diffuseTextureZ: BaseTexture;
|
|
237
237
|
private _normalTextureX;
|
|
238
|
-
normalTextureX: BaseTexture;
|
|
238
|
+
accessor normalTextureX: BaseTexture;
|
|
239
239
|
private _normalTextureY;
|
|
240
|
-
normalTextureY: BaseTexture;
|
|
240
|
+
accessor normalTextureY: BaseTexture;
|
|
241
241
|
private _normalTextureZ;
|
|
242
|
-
normalTextureZ: BaseTexture;
|
|
242
|
+
accessor normalTextureZ: BaseTexture;
|
|
243
243
|
tileSize: number;
|
|
244
244
|
diffuseColor: Color3;
|
|
245
245
|
specularColor: Color3;
|
|
246
246
|
specularPower: number;
|
|
247
247
|
private _disableLighting;
|
|
248
|
-
disableLighting: boolean;
|
|
248
|
+
accessor disableLighting: boolean;
|
|
249
249
|
private _maxSimultaneousLights;
|
|
250
|
-
maxSimultaneousLights: number;
|
|
250
|
+
accessor maxSimultaneousLights: number;
|
|
251
251
|
private _shadersLoaded;
|
|
252
252
|
/**
|
|
253
253
|
* Instantiates a TriPlanar Material in the given scene
|
|
@@ -306,26 +306,26 @@ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
306
306
|
import { Scene } from "babylonjs/scene";
|
|
307
307
|
export class TerrainMaterial extends PushMaterial {
|
|
308
308
|
private _mixTexture;
|
|
309
|
-
mixTexture: BaseTexture;
|
|
309
|
+
accessor mixTexture: BaseTexture;
|
|
310
310
|
private _diffuseTexture1;
|
|
311
|
-
diffuseTexture1: Texture;
|
|
311
|
+
accessor diffuseTexture1: Texture;
|
|
312
312
|
private _diffuseTexture2;
|
|
313
|
-
diffuseTexture2: Texture;
|
|
313
|
+
accessor diffuseTexture2: Texture;
|
|
314
314
|
private _diffuseTexture3;
|
|
315
|
-
diffuseTexture3: Texture;
|
|
315
|
+
accessor diffuseTexture3: Texture;
|
|
316
316
|
private _bumpTexture1;
|
|
317
|
-
bumpTexture1: Texture;
|
|
317
|
+
accessor bumpTexture1: Texture;
|
|
318
318
|
private _bumpTexture2;
|
|
319
|
-
bumpTexture2: Texture;
|
|
319
|
+
accessor bumpTexture2: Texture;
|
|
320
320
|
private _bumpTexture3;
|
|
321
|
-
bumpTexture3: Texture;
|
|
321
|
+
accessor bumpTexture3: Texture;
|
|
322
322
|
diffuseColor: Color3;
|
|
323
323
|
specularColor: Color3;
|
|
324
324
|
specularPower: number;
|
|
325
325
|
private _disableLighting;
|
|
326
|
-
disableLighting: boolean;
|
|
326
|
+
accessor disableLighting: boolean;
|
|
327
327
|
private _maxSimultaneousLights;
|
|
328
|
-
maxSimultaneousLights: number;
|
|
328
|
+
accessor maxSimultaneousLights: number;
|
|
329
329
|
private _shadersLoaded;
|
|
330
330
|
/**
|
|
331
331
|
* Instantiates a Terrain Material in the given scene
|
|
@@ -588,12 +588,12 @@ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
588
588
|
import { Scene } from "babylonjs/scene";
|
|
589
589
|
export class SimpleMaterial extends PushMaterial {
|
|
590
590
|
private _diffuseTexture;
|
|
591
|
-
diffuseTexture: BaseTexture;
|
|
591
|
+
accessor diffuseTexture: BaseTexture;
|
|
592
592
|
diffuseColor: Color3;
|
|
593
593
|
private _disableLighting;
|
|
594
|
-
disableLighting: boolean;
|
|
594
|
+
accessor disableLighting: boolean;
|
|
595
595
|
private _maxSimultaneousLights;
|
|
596
|
-
maxSimultaneousLights: number;
|
|
596
|
+
accessor maxSimultaneousLights: number;
|
|
597
597
|
private _shadersLoaded;
|
|
598
598
|
/**
|
|
599
599
|
* Instantiates a Simple Material in the given scene
|
|
@@ -741,12 +741,12 @@ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
741
741
|
import { Scene } from "babylonjs/scene";
|
|
742
742
|
export class NormalMaterial extends PushMaterial {
|
|
743
743
|
private _diffuseTexture;
|
|
744
|
-
diffuseTexture: BaseTexture;
|
|
744
|
+
accessor diffuseTexture: BaseTexture;
|
|
745
745
|
diffuseColor: Color3;
|
|
746
746
|
private _disableLighting;
|
|
747
|
-
disableLighting: boolean;
|
|
747
|
+
accessor disableLighting: boolean;
|
|
748
748
|
private _maxSimultaneousLights;
|
|
749
|
-
maxSimultaneousLights: number;
|
|
749
|
+
accessor maxSimultaneousLights: number;
|
|
750
750
|
private _shadersLoaded;
|
|
751
751
|
/**
|
|
752
752
|
* Instantiates a Normal Material in the given scene
|
|
@@ -825,28 +825,28 @@ export class MixMaterial extends PushMaterial {
|
|
|
825
825
|
* Mix textures
|
|
826
826
|
*/
|
|
827
827
|
private _mixTexture1;
|
|
828
|
-
mixTexture1: BaseTexture;
|
|
828
|
+
accessor mixTexture1: BaseTexture;
|
|
829
829
|
private _mixTexture2;
|
|
830
|
-
mixTexture2: BaseTexture;
|
|
830
|
+
accessor mixTexture2: BaseTexture;
|
|
831
831
|
/**
|
|
832
832
|
* Diffuse textures
|
|
833
833
|
*/
|
|
834
834
|
private _diffuseTexture1;
|
|
835
|
-
diffuseTexture1: Texture;
|
|
835
|
+
accessor diffuseTexture1: Texture;
|
|
836
836
|
private _diffuseTexture2;
|
|
837
|
-
diffuseTexture2: Texture;
|
|
837
|
+
accessor diffuseTexture2: Texture;
|
|
838
838
|
private _diffuseTexture3;
|
|
839
|
-
diffuseTexture3: Texture;
|
|
839
|
+
accessor diffuseTexture3: Texture;
|
|
840
840
|
private _diffuseTexture4;
|
|
841
|
-
diffuseTexture4: Texture;
|
|
841
|
+
accessor diffuseTexture4: Texture;
|
|
842
842
|
private _diffuseTexture5;
|
|
843
|
-
diffuseTexture5: Texture;
|
|
843
|
+
accessor diffuseTexture5: Texture;
|
|
844
844
|
private _diffuseTexture6;
|
|
845
|
-
diffuseTexture6: Texture;
|
|
845
|
+
accessor diffuseTexture6: Texture;
|
|
846
846
|
private _diffuseTexture7;
|
|
847
|
-
diffuseTexture7: Texture;
|
|
847
|
+
accessor diffuseTexture7: Texture;
|
|
848
848
|
private _diffuseTexture8;
|
|
849
|
-
diffuseTexture8: Texture;
|
|
849
|
+
accessor diffuseTexture8: Texture;
|
|
850
850
|
/**
|
|
851
851
|
* Uniforms
|
|
852
852
|
*/
|
|
@@ -854,9 +854,9 @@ export class MixMaterial extends PushMaterial {
|
|
|
854
854
|
specularColor: Color3;
|
|
855
855
|
specularPower: number;
|
|
856
856
|
private _disableLighting;
|
|
857
|
-
disableLighting: boolean;
|
|
857
|
+
accessor disableLighting: boolean;
|
|
858
858
|
private _maxSimultaneousLights;
|
|
859
|
-
maxSimultaneousLights: number;
|
|
859
|
+
accessor maxSimultaneousLights: number;
|
|
860
860
|
private _shadersLoaded;
|
|
861
861
|
/**
|
|
862
862
|
* Instantiates a Mix Material in the given scene
|
|
@@ -994,7 +994,7 @@ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
994
994
|
import { Scene } from "babylonjs/scene";
|
|
995
995
|
export class LavaMaterial extends PushMaterial {
|
|
996
996
|
private _diffuseTexture;
|
|
997
|
-
diffuseTexture: BaseTexture;
|
|
997
|
+
accessor diffuseTexture: BaseTexture;
|
|
998
998
|
noiseTexture: BaseTexture;
|
|
999
999
|
fogColor: Color3;
|
|
1000
1000
|
speed: number;
|
|
@@ -1004,11 +1004,11 @@ export class LavaMaterial extends PushMaterial {
|
|
|
1004
1004
|
private _lastTime;
|
|
1005
1005
|
diffuseColor: Color3;
|
|
1006
1006
|
private _disableLighting;
|
|
1007
|
-
disableLighting: boolean;
|
|
1007
|
+
accessor disableLighting: boolean;
|
|
1008
1008
|
private _unlit;
|
|
1009
|
-
unlit: boolean;
|
|
1009
|
+
accessor unlit: boolean;
|
|
1010
1010
|
private _maxSimultaneousLights;
|
|
1011
|
-
maxSimultaneousLights: number;
|
|
1011
|
+
accessor maxSimultaneousLights: number;
|
|
1012
1012
|
private _scaledDiffuse;
|
|
1013
1013
|
private _shadersLoaded;
|
|
1014
1014
|
/**
|
|
@@ -1173,7 +1173,7 @@ export class GridMaterial extends PushMaterial {
|
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Texture to define opacity of the grid
|
|
1175
1175
|
*/
|
|
1176
|
-
opacityTexture: BaseTexture;
|
|
1176
|
+
accessor opacityTexture: BaseTexture;
|
|
1177
1177
|
private _gridControl;
|
|
1178
1178
|
private _viewportSize;
|
|
1179
1179
|
/**
|
|
@@ -1259,7 +1259,7 @@ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
1259
1259
|
import { Scene } from "babylonjs/scene";
|
|
1260
1260
|
export class GradientMaterial extends PushMaterial {
|
|
1261
1261
|
private _maxSimultaneousLights;
|
|
1262
|
-
maxSimultaneousLights: number;
|
|
1262
|
+
accessor maxSimultaneousLights: number;
|
|
1263
1263
|
topColor: Color3;
|
|
1264
1264
|
topColorAlpha: number;
|
|
1265
1265
|
bottomColor: Color3;
|
|
@@ -1268,7 +1268,7 @@ export class GradientMaterial extends PushMaterial {
|
|
|
1268
1268
|
scale: number;
|
|
1269
1269
|
smoothness: number;
|
|
1270
1270
|
private _disableLighting;
|
|
1271
|
-
disableLighting: boolean;
|
|
1271
|
+
accessor disableLighting: boolean;
|
|
1272
1272
|
private _shadersLoaded;
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Instantiates a Gradient Material in the given scene
|
|
@@ -1341,9 +1341,9 @@ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
1341
1341
|
import { Scene } from "babylonjs/scene";
|
|
1342
1342
|
export class FurMaterial extends PushMaterial {
|
|
1343
1343
|
private _diffuseTexture;
|
|
1344
|
-
diffuseTexture: BaseTexture;
|
|
1344
|
+
accessor diffuseTexture: BaseTexture;
|
|
1345
1345
|
private _heightTexture;
|
|
1346
|
-
heightTexture: BaseTexture;
|
|
1346
|
+
accessor heightTexture: BaseTexture;
|
|
1347
1347
|
diffuseColor: Color3;
|
|
1348
1348
|
furLength: number;
|
|
1349
1349
|
furAngle: number;
|
|
@@ -1356,9 +1356,9 @@ export class FurMaterial extends PushMaterial {
|
|
|
1356
1356
|
furOcclusion: number;
|
|
1357
1357
|
furTexture: DynamicTexture;
|
|
1358
1358
|
private _disableLighting;
|
|
1359
|
-
disableLighting: boolean;
|
|
1359
|
+
accessor disableLighting: boolean;
|
|
1360
1360
|
private _maxSimultaneousLights;
|
|
1361
|
-
maxSimultaneousLights: number;
|
|
1361
|
+
accessor maxSimultaneousLights: number;
|
|
1362
1362
|
highLevelFur: boolean;
|
|
1363
1363
|
_meshes: AbstractMesh[];
|
|
1364
1364
|
private _furTime;
|
|
@@ -1440,11 +1440,11 @@ import { Scene } from "babylonjs/scene";
|
|
|
1440
1440
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
1441
1441
|
export class FireMaterial extends PushMaterial {
|
|
1442
1442
|
private _diffuseTexture;
|
|
1443
|
-
diffuseTexture: Nullable<BaseTexture>;
|
|
1443
|
+
accessor diffuseTexture: Nullable<BaseTexture>;
|
|
1444
1444
|
private _distortionTexture;
|
|
1445
|
-
distortionTexture: Nullable<BaseTexture>;
|
|
1445
|
+
accessor distortionTexture: Nullable<BaseTexture>;
|
|
1446
1446
|
private _opacityTexture;
|
|
1447
|
-
opacityTexture: Nullable<BaseTexture>;
|
|
1447
|
+
accessor opacityTexture: Nullable<BaseTexture>;
|
|
1448
1448
|
diffuseColor: Color3;
|
|
1449
1449
|
speed: number;
|
|
1450
1450
|
private _scaledDiffuse;
|
|
@@ -2120,14 +2120,14 @@ import { Scene } from "babylonjs/scene";
|
|
|
2120
2120
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
2121
2121
|
export class CellMaterial extends PushMaterial {
|
|
2122
2122
|
private _diffuseTexture;
|
|
2123
|
-
diffuseTexture: BaseTexture;
|
|
2123
|
+
accessor diffuseTexture: BaseTexture;
|
|
2124
2124
|
diffuseColor: Color3;
|
|
2125
2125
|
_computeHighLevel: boolean;
|
|
2126
|
-
computeHighLevel: boolean;
|
|
2126
|
+
accessor computeHighLevel: boolean;
|
|
2127
2127
|
private _disableLighting;
|
|
2128
|
-
disableLighting: boolean;
|
|
2128
|
+
accessor disableLighting: boolean;
|
|
2129
2129
|
private _maxSimultaneousLights;
|
|
2130
|
-
maxSimultaneousLights: number;
|
|
2130
|
+
accessor maxSimultaneousLights: number;
|
|
2131
2131
|
private _shadersLoaded;
|
|
2132
2132
|
/**
|
|
2133
2133
|
* Instantiates a Cell Material in the given scene
|
|
@@ -2196,14 +2196,14 @@ declare namespace BABYLON {
|
|
|
2196
2196
|
export class WaterMaterial extends PushMaterial {
|
|
2197
2197
|
renderTargetSize: Vector2;
|
|
2198
2198
|
private _bumpTexture;
|
|
2199
|
-
bumpTexture: BaseTexture;
|
|
2199
|
+
accessor bumpTexture: BaseTexture;
|
|
2200
2200
|
diffuseColor: Color3;
|
|
2201
2201
|
specularColor: Color3;
|
|
2202
2202
|
specularPower: number;
|
|
2203
2203
|
private _disableLighting;
|
|
2204
|
-
disableLighting: boolean;
|
|
2204
|
+
accessor disableLighting: boolean;
|
|
2205
2205
|
private _maxSimultaneousLights;
|
|
2206
|
-
maxSimultaneousLights: number;
|
|
2206
|
+
accessor maxSimultaneousLights: number;
|
|
2207
2207
|
/**
|
|
2208
2208
|
* Defines the wind force.
|
|
2209
2209
|
*/
|
|
@@ -2224,17 +2224,17 @@ declare namespace BABYLON {
|
|
|
2224
2224
|
* Defines wether or not: to add a smaller moving bump to less steady waves.
|
|
2225
2225
|
*/
|
|
2226
2226
|
private _bumpSuperimpose;
|
|
2227
|
-
bumpSuperimpose: boolean;
|
|
2227
|
+
accessor bumpSuperimpose: boolean;
|
|
2228
2228
|
/**
|
|
2229
2229
|
* Defines wether or not color refraction and reflection differently with .waterColor2 and .colorBlendFactor2. Non-linear (physically correct) fresnel.
|
|
2230
2230
|
*/
|
|
2231
2231
|
private _fresnelSeparate;
|
|
2232
|
-
fresnelSeparate: boolean;
|
|
2232
|
+
accessor fresnelSeparate: boolean;
|
|
2233
2233
|
/**
|
|
2234
2234
|
* Defines wether or not bump Wwves modify the reflection.
|
|
2235
2235
|
*/
|
|
2236
2236
|
private _bumpAffectsReflection;
|
|
2237
|
-
bumpAffectsReflection: boolean;
|
|
2237
|
+
accessor bumpAffectsReflection: boolean;
|
|
2238
2238
|
/**
|
|
2239
2239
|
* Defines the water color blended with the refraction (near).
|
|
2240
2240
|
*/
|
|
@@ -2274,7 +2274,7 @@ declare namespace BABYLON {
|
|
|
2274
2274
|
* You will probably need to set it to true if you are using instances or thin instances for your water objects.
|
|
2275
2275
|
*/
|
|
2276
2276
|
private _useWorldCoordinatesForWaveDeformation;
|
|
2277
|
-
useWorldCoordinatesForWaveDeformation: boolean;
|
|
2277
|
+
accessor useWorldCoordinatesForWaveDeformation: boolean;
|
|
2278
2278
|
protected _renderTargets: SmartArray<RenderTargetTexture>;
|
|
2279
2279
|
private _mesh;
|
|
2280
2280
|
private _refractionRTT;
|
|
@@ -2372,25 +2372,25 @@ declare namespace BABYLON {
|
|
|
2372
2372
|
export class TriPlanarMaterial extends PushMaterial {
|
|
2373
2373
|
mixTexture: BaseTexture;
|
|
2374
2374
|
private _diffuseTextureX;
|
|
2375
|
-
diffuseTextureX: BaseTexture;
|
|
2375
|
+
accessor diffuseTextureX: BaseTexture;
|
|
2376
2376
|
private _diffuseTextureY;
|
|
2377
|
-
diffuseTextureY: BaseTexture;
|
|
2377
|
+
accessor diffuseTextureY: BaseTexture;
|
|
2378
2378
|
private _diffuseTextureZ;
|
|
2379
|
-
diffuseTextureZ: BaseTexture;
|
|
2379
|
+
accessor diffuseTextureZ: BaseTexture;
|
|
2380
2380
|
private _normalTextureX;
|
|
2381
|
-
normalTextureX: BaseTexture;
|
|
2381
|
+
accessor normalTextureX: BaseTexture;
|
|
2382
2382
|
private _normalTextureY;
|
|
2383
|
-
normalTextureY: BaseTexture;
|
|
2383
|
+
accessor normalTextureY: BaseTexture;
|
|
2384
2384
|
private _normalTextureZ;
|
|
2385
|
-
normalTextureZ: BaseTexture;
|
|
2385
|
+
accessor normalTextureZ: BaseTexture;
|
|
2386
2386
|
tileSize: number;
|
|
2387
2387
|
diffuseColor: Color3;
|
|
2388
2388
|
specularColor: Color3;
|
|
2389
2389
|
specularPower: number;
|
|
2390
2390
|
private _disableLighting;
|
|
2391
|
-
disableLighting: boolean;
|
|
2391
|
+
accessor disableLighting: boolean;
|
|
2392
2392
|
private _maxSimultaneousLights;
|
|
2393
|
-
maxSimultaneousLights: number;
|
|
2393
|
+
accessor maxSimultaneousLights: number;
|
|
2394
2394
|
private _shadersLoaded;
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Instantiates a TriPlanar Material in the given scene
|
|
@@ -2433,26 +2433,26 @@ declare namespace BABYLON {
|
|
|
2433
2433
|
|
|
2434
2434
|
export class TerrainMaterial extends PushMaterial {
|
|
2435
2435
|
private _mixTexture;
|
|
2436
|
-
mixTexture: BaseTexture;
|
|
2436
|
+
accessor mixTexture: BaseTexture;
|
|
2437
2437
|
private _diffuseTexture1;
|
|
2438
|
-
diffuseTexture1: Texture;
|
|
2438
|
+
accessor diffuseTexture1: Texture;
|
|
2439
2439
|
private _diffuseTexture2;
|
|
2440
|
-
diffuseTexture2: Texture;
|
|
2440
|
+
accessor diffuseTexture2: Texture;
|
|
2441
2441
|
private _diffuseTexture3;
|
|
2442
|
-
diffuseTexture3: Texture;
|
|
2442
|
+
accessor diffuseTexture3: Texture;
|
|
2443
2443
|
private _bumpTexture1;
|
|
2444
|
-
bumpTexture1: Texture;
|
|
2444
|
+
accessor bumpTexture1: Texture;
|
|
2445
2445
|
private _bumpTexture2;
|
|
2446
|
-
bumpTexture2: Texture;
|
|
2446
|
+
accessor bumpTexture2: Texture;
|
|
2447
2447
|
private _bumpTexture3;
|
|
2448
|
-
bumpTexture3: Texture;
|
|
2448
|
+
accessor bumpTexture3: Texture;
|
|
2449
2449
|
diffuseColor: Color3;
|
|
2450
2450
|
specularColor: Color3;
|
|
2451
2451
|
specularPower: number;
|
|
2452
2452
|
private _disableLighting;
|
|
2453
|
-
disableLighting: boolean;
|
|
2453
|
+
accessor disableLighting: boolean;
|
|
2454
2454
|
private _maxSimultaneousLights;
|
|
2455
|
-
maxSimultaneousLights: number;
|
|
2455
|
+
accessor maxSimultaneousLights: number;
|
|
2456
2456
|
private _shadersLoaded;
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Instantiates a Terrain Material in the given scene
|
|
@@ -2682,12 +2682,12 @@ declare namespace BABYLON {
|
|
|
2682
2682
|
|
|
2683
2683
|
export class SimpleMaterial extends PushMaterial {
|
|
2684
2684
|
private _diffuseTexture;
|
|
2685
|
-
diffuseTexture: BaseTexture;
|
|
2685
|
+
accessor diffuseTexture: BaseTexture;
|
|
2686
2686
|
diffuseColor: Color3;
|
|
2687
2687
|
private _disableLighting;
|
|
2688
|
-
disableLighting: boolean;
|
|
2688
|
+
accessor disableLighting: boolean;
|
|
2689
2689
|
private _maxSimultaneousLights;
|
|
2690
|
-
maxSimultaneousLights: number;
|
|
2690
|
+
accessor maxSimultaneousLights: number;
|
|
2691
2691
|
private _shadersLoaded;
|
|
2692
2692
|
/**
|
|
2693
2693
|
* Instantiates a Simple Material in the given scene
|
|
@@ -2801,12 +2801,12 @@ declare namespace BABYLON {
|
|
|
2801
2801
|
|
|
2802
2802
|
export class NormalMaterial extends PushMaterial {
|
|
2803
2803
|
private _diffuseTexture;
|
|
2804
|
-
diffuseTexture: BaseTexture;
|
|
2804
|
+
accessor diffuseTexture: BaseTexture;
|
|
2805
2805
|
diffuseColor: Color3;
|
|
2806
2806
|
private _disableLighting;
|
|
2807
|
-
disableLighting: boolean;
|
|
2807
|
+
accessor disableLighting: boolean;
|
|
2808
2808
|
private _maxSimultaneousLights;
|
|
2809
|
-
maxSimultaneousLights: number;
|
|
2809
|
+
accessor maxSimultaneousLights: number;
|
|
2810
2810
|
private _shadersLoaded;
|
|
2811
2811
|
/**
|
|
2812
2812
|
* Instantiates a Normal Material in the given scene
|
|
@@ -2867,28 +2867,28 @@ declare namespace BABYLON {
|
|
|
2867
2867
|
* Mix textures
|
|
2868
2868
|
*/
|
|
2869
2869
|
private _mixTexture1;
|
|
2870
|
-
mixTexture1: BaseTexture;
|
|
2870
|
+
accessor mixTexture1: BaseTexture;
|
|
2871
2871
|
private _mixTexture2;
|
|
2872
|
-
mixTexture2: BaseTexture;
|
|
2872
|
+
accessor mixTexture2: BaseTexture;
|
|
2873
2873
|
/**
|
|
2874
2874
|
* Diffuse textures
|
|
2875
2875
|
*/
|
|
2876
2876
|
private _diffuseTexture1;
|
|
2877
|
-
diffuseTexture1: Texture;
|
|
2877
|
+
accessor diffuseTexture1: Texture;
|
|
2878
2878
|
private _diffuseTexture2;
|
|
2879
|
-
diffuseTexture2: Texture;
|
|
2879
|
+
accessor diffuseTexture2: Texture;
|
|
2880
2880
|
private _diffuseTexture3;
|
|
2881
|
-
diffuseTexture3: Texture;
|
|
2881
|
+
accessor diffuseTexture3: Texture;
|
|
2882
2882
|
private _diffuseTexture4;
|
|
2883
|
-
diffuseTexture4: Texture;
|
|
2883
|
+
accessor diffuseTexture4: Texture;
|
|
2884
2884
|
private _diffuseTexture5;
|
|
2885
|
-
diffuseTexture5: Texture;
|
|
2885
|
+
accessor diffuseTexture5: Texture;
|
|
2886
2886
|
private _diffuseTexture6;
|
|
2887
|
-
diffuseTexture6: Texture;
|
|
2887
|
+
accessor diffuseTexture6: Texture;
|
|
2888
2888
|
private _diffuseTexture7;
|
|
2889
|
-
diffuseTexture7: Texture;
|
|
2889
|
+
accessor diffuseTexture7: Texture;
|
|
2890
2890
|
private _diffuseTexture8;
|
|
2891
|
-
diffuseTexture8: Texture;
|
|
2891
|
+
accessor diffuseTexture8: Texture;
|
|
2892
2892
|
/**
|
|
2893
2893
|
* Uniforms
|
|
2894
2894
|
*/
|
|
@@ -2896,9 +2896,9 @@ declare namespace BABYLON {
|
|
|
2896
2896
|
specularColor: Color3;
|
|
2897
2897
|
specularPower: number;
|
|
2898
2898
|
private _disableLighting;
|
|
2899
|
-
disableLighting: boolean;
|
|
2899
|
+
accessor disableLighting: boolean;
|
|
2900
2900
|
private _maxSimultaneousLights;
|
|
2901
|
-
maxSimultaneousLights: number;
|
|
2901
|
+
accessor maxSimultaneousLights: number;
|
|
2902
2902
|
private _shadersLoaded;
|
|
2903
2903
|
/**
|
|
2904
2904
|
* Instantiates a Mix Material in the given scene
|
|
@@ -2985,7 +2985,7 @@ declare namespace BABYLON {
|
|
|
2985
2985
|
|
|
2986
2986
|
export class LavaMaterial extends PushMaterial {
|
|
2987
2987
|
private _diffuseTexture;
|
|
2988
|
-
diffuseTexture: BaseTexture;
|
|
2988
|
+
accessor diffuseTexture: BaseTexture;
|
|
2989
2989
|
noiseTexture: BaseTexture;
|
|
2990
2990
|
fogColor: Color3;
|
|
2991
2991
|
speed: number;
|
|
@@ -2995,11 +2995,11 @@ declare namespace BABYLON {
|
|
|
2995
2995
|
private _lastTime;
|
|
2996
2996
|
diffuseColor: Color3;
|
|
2997
2997
|
private _disableLighting;
|
|
2998
|
-
disableLighting: boolean;
|
|
2998
|
+
accessor disableLighting: boolean;
|
|
2999
2999
|
private _unlit;
|
|
3000
|
-
unlit: boolean;
|
|
3000
|
+
accessor unlit: boolean;
|
|
3001
3001
|
private _maxSimultaneousLights;
|
|
3002
|
-
maxSimultaneousLights: number;
|
|
3002
|
+
accessor maxSimultaneousLights: number;
|
|
3003
3003
|
private _scaledDiffuse;
|
|
3004
3004
|
private _shadersLoaded;
|
|
3005
3005
|
/**
|
|
@@ -3146,7 +3146,7 @@ declare namespace BABYLON {
|
|
|
3146
3146
|
/**
|
|
3147
3147
|
* Texture to define opacity of the grid
|
|
3148
3148
|
*/
|
|
3149
|
-
opacityTexture: BaseTexture;
|
|
3149
|
+
accessor opacityTexture: BaseTexture;
|
|
3150
3150
|
private _gridControl;
|
|
3151
3151
|
private _viewportSize;
|
|
3152
3152
|
/**
|
|
@@ -3215,7 +3215,7 @@ declare namespace BABYLON {
|
|
|
3215
3215
|
|
|
3216
3216
|
export class GradientMaterial extends PushMaterial {
|
|
3217
3217
|
private _maxSimultaneousLights;
|
|
3218
|
-
maxSimultaneousLights: number;
|
|
3218
|
+
accessor maxSimultaneousLights: number;
|
|
3219
3219
|
topColor: Color3;
|
|
3220
3220
|
topColorAlpha: number;
|
|
3221
3221
|
bottomColor: Color3;
|
|
@@ -3224,7 +3224,7 @@ declare namespace BABYLON {
|
|
|
3224
3224
|
scale: number;
|
|
3225
3225
|
smoothness: number;
|
|
3226
3226
|
private _disableLighting;
|
|
3227
|
-
disableLighting: boolean;
|
|
3227
|
+
accessor disableLighting: boolean;
|
|
3228
3228
|
private _shadersLoaded;
|
|
3229
3229
|
/**
|
|
3230
3230
|
* Instantiates a Gradient Material in the given scene
|
|
@@ -3279,9 +3279,9 @@ declare namespace BABYLON {
|
|
|
3279
3279
|
|
|
3280
3280
|
export class FurMaterial extends PushMaterial {
|
|
3281
3281
|
private _diffuseTexture;
|
|
3282
|
-
diffuseTexture: BaseTexture;
|
|
3282
|
+
accessor diffuseTexture: BaseTexture;
|
|
3283
3283
|
private _heightTexture;
|
|
3284
|
-
heightTexture: BaseTexture;
|
|
3284
|
+
accessor heightTexture: BaseTexture;
|
|
3285
3285
|
diffuseColor: Color3;
|
|
3286
3286
|
furLength: number;
|
|
3287
3287
|
furAngle: number;
|
|
@@ -3294,9 +3294,9 @@ declare namespace BABYLON {
|
|
|
3294
3294
|
furOcclusion: number;
|
|
3295
3295
|
furTexture: DynamicTexture;
|
|
3296
3296
|
private _disableLighting;
|
|
3297
|
-
disableLighting: boolean;
|
|
3297
|
+
accessor disableLighting: boolean;
|
|
3298
3298
|
private _maxSimultaneousLights;
|
|
3299
|
-
maxSimultaneousLights: number;
|
|
3299
|
+
accessor maxSimultaneousLights: number;
|
|
3300
3300
|
highLevelFur: boolean;
|
|
3301
3301
|
_meshes: AbstractMesh[];
|
|
3302
3302
|
private _furTime;
|
|
@@ -3361,11 +3361,11 @@ declare namespace BABYLON {
|
|
|
3361
3361
|
|
|
3362
3362
|
export class FireMaterial extends PushMaterial {
|
|
3363
3363
|
private _diffuseTexture;
|
|
3364
|
-
diffuseTexture: Nullable<BaseTexture>;
|
|
3364
|
+
accessor diffuseTexture: Nullable<BaseTexture>;
|
|
3365
3365
|
private _distortionTexture;
|
|
3366
|
-
distortionTexture: Nullable<BaseTexture>;
|
|
3366
|
+
accessor distortionTexture: Nullable<BaseTexture>;
|
|
3367
3367
|
private _opacityTexture;
|
|
3368
|
-
opacityTexture: Nullable<BaseTexture>;
|
|
3368
|
+
accessor opacityTexture: Nullable<BaseTexture>;
|
|
3369
3369
|
diffuseColor: Color3;
|
|
3370
3370
|
speed: number;
|
|
3371
3371
|
private _scaledDiffuse;
|
|
@@ -3998,14 +3998,14 @@ declare namespace BABYLON {
|
|
|
3998
3998
|
|
|
3999
3999
|
export class CellMaterial extends PushMaterial {
|
|
4000
4000
|
private _diffuseTexture;
|
|
4001
|
-
diffuseTexture: BaseTexture;
|
|
4001
|
+
accessor diffuseTexture: BaseTexture;
|
|
4002
4002
|
diffuseColor: Color3;
|
|
4003
4003
|
_computeHighLevel: boolean;
|
|
4004
|
-
computeHighLevel: boolean;
|
|
4004
|
+
accessor computeHighLevel: boolean;
|
|
4005
4005
|
private _disableLighting;
|
|
4006
|
-
disableLighting: boolean;
|
|
4006
|
+
accessor disableLighting: boolean;
|
|
4007
4007
|
private _maxSimultaneousLights;
|
|
4008
|
-
maxSimultaneousLights: number;
|
|
4008
|
+
accessor maxSimultaneousLights: number;
|
|
4009
4009
|
private _shadersLoaded;
|
|
4010
4010
|
/**
|
|
4011
4011
|
* Instantiates a Cell Material in the given scene
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-materials",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.16.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.16.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|