babylonjs-materials 9.15.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
package/babylonjs.materials.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ declare namespace BABYLON {
|
|
|
5
5
|
export class WaterMaterial extends PushMaterial {
|
|
6
6
|
renderTargetSize: Vector2;
|
|
7
7
|
private _bumpTexture;
|
|
8
|
-
bumpTexture: BaseTexture;
|
|
8
|
+
accessor bumpTexture: BaseTexture;
|
|
9
9
|
diffuseColor: Color3;
|
|
10
10
|
specularColor: Color3;
|
|
11
11
|
specularPower: number;
|
|
12
12
|
private _disableLighting;
|
|
13
|
-
disableLighting: boolean;
|
|
13
|
+
accessor disableLighting: boolean;
|
|
14
14
|
private _maxSimultaneousLights;
|
|
15
|
-
maxSimultaneousLights: number;
|
|
15
|
+
accessor maxSimultaneousLights: number;
|
|
16
16
|
/**
|
|
17
17
|
* Defines the wind force.
|
|
18
18
|
*/
|
|
@@ -33,17 +33,17 @@ declare namespace BABYLON {
|
|
|
33
33
|
* Defines wether or not: to add a smaller moving bump to less steady waves.
|
|
34
34
|
*/
|
|
35
35
|
private _bumpSuperimpose;
|
|
36
|
-
bumpSuperimpose: boolean;
|
|
36
|
+
accessor bumpSuperimpose: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* Defines wether or not color refraction and reflection differently with .waterColor2 and .colorBlendFactor2. Non-linear (physically correct) fresnel.
|
|
39
39
|
*/
|
|
40
40
|
private _fresnelSeparate;
|
|
41
|
-
fresnelSeparate: boolean;
|
|
41
|
+
accessor fresnelSeparate: boolean;
|
|
42
42
|
/**
|
|
43
43
|
* Defines wether or not bump Wwves modify the reflection.
|
|
44
44
|
*/
|
|
45
45
|
private _bumpAffectsReflection;
|
|
46
|
-
bumpAffectsReflection: boolean;
|
|
46
|
+
accessor bumpAffectsReflection: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Defines the water color blended with the refraction (near).
|
|
49
49
|
*/
|
|
@@ -83,7 +83,7 @@ declare namespace BABYLON {
|
|
|
83
83
|
* You will probably need to set it to true if you are using instances or thin instances for your water objects.
|
|
84
84
|
*/
|
|
85
85
|
private _useWorldCoordinatesForWaveDeformation;
|
|
86
|
-
useWorldCoordinatesForWaveDeformation: boolean;
|
|
86
|
+
accessor useWorldCoordinatesForWaveDeformation: boolean;
|
|
87
87
|
protected _renderTargets: SmartArray<RenderTargetTexture>;
|
|
88
88
|
private _mesh;
|
|
89
89
|
private _refractionRTT;
|
|
@@ -181,25 +181,25 @@ declare namespace BABYLON {
|
|
|
181
181
|
export class TriPlanarMaterial extends PushMaterial {
|
|
182
182
|
mixTexture: BaseTexture;
|
|
183
183
|
private _diffuseTextureX;
|
|
184
|
-
diffuseTextureX: BaseTexture;
|
|
184
|
+
accessor diffuseTextureX: BaseTexture;
|
|
185
185
|
private _diffuseTextureY;
|
|
186
|
-
diffuseTextureY: BaseTexture;
|
|
186
|
+
accessor diffuseTextureY: BaseTexture;
|
|
187
187
|
private _diffuseTextureZ;
|
|
188
|
-
diffuseTextureZ: BaseTexture;
|
|
188
|
+
accessor diffuseTextureZ: BaseTexture;
|
|
189
189
|
private _normalTextureX;
|
|
190
|
-
normalTextureX: BaseTexture;
|
|
190
|
+
accessor normalTextureX: BaseTexture;
|
|
191
191
|
private _normalTextureY;
|
|
192
|
-
normalTextureY: BaseTexture;
|
|
192
|
+
accessor normalTextureY: BaseTexture;
|
|
193
193
|
private _normalTextureZ;
|
|
194
|
-
normalTextureZ: BaseTexture;
|
|
194
|
+
accessor normalTextureZ: BaseTexture;
|
|
195
195
|
tileSize: number;
|
|
196
196
|
diffuseColor: Color3;
|
|
197
197
|
specularColor: Color3;
|
|
198
198
|
specularPower: number;
|
|
199
199
|
private _disableLighting;
|
|
200
|
-
disableLighting: boolean;
|
|
200
|
+
accessor disableLighting: boolean;
|
|
201
201
|
private _maxSimultaneousLights;
|
|
202
|
-
maxSimultaneousLights: number;
|
|
202
|
+
accessor maxSimultaneousLights: number;
|
|
203
203
|
private _shadersLoaded;
|
|
204
204
|
/**
|
|
205
205
|
* Instantiates a TriPlanar Material in the given scene
|
|
@@ -242,26 +242,26 @@ declare namespace BABYLON {
|
|
|
242
242
|
|
|
243
243
|
export class TerrainMaterial extends PushMaterial {
|
|
244
244
|
private _mixTexture;
|
|
245
|
-
mixTexture: BaseTexture;
|
|
245
|
+
accessor mixTexture: BaseTexture;
|
|
246
246
|
private _diffuseTexture1;
|
|
247
|
-
diffuseTexture1: Texture;
|
|
247
|
+
accessor diffuseTexture1: Texture;
|
|
248
248
|
private _diffuseTexture2;
|
|
249
|
-
diffuseTexture2: Texture;
|
|
249
|
+
accessor diffuseTexture2: Texture;
|
|
250
250
|
private _diffuseTexture3;
|
|
251
|
-
diffuseTexture3: Texture;
|
|
251
|
+
accessor diffuseTexture3: Texture;
|
|
252
252
|
private _bumpTexture1;
|
|
253
|
-
bumpTexture1: Texture;
|
|
253
|
+
accessor bumpTexture1: Texture;
|
|
254
254
|
private _bumpTexture2;
|
|
255
|
-
bumpTexture2: Texture;
|
|
255
|
+
accessor bumpTexture2: Texture;
|
|
256
256
|
private _bumpTexture3;
|
|
257
|
-
bumpTexture3: Texture;
|
|
257
|
+
accessor bumpTexture3: Texture;
|
|
258
258
|
diffuseColor: Color3;
|
|
259
259
|
specularColor: Color3;
|
|
260
260
|
specularPower: number;
|
|
261
261
|
private _disableLighting;
|
|
262
|
-
disableLighting: boolean;
|
|
262
|
+
accessor disableLighting: boolean;
|
|
263
263
|
private _maxSimultaneousLights;
|
|
264
|
-
maxSimultaneousLights: number;
|
|
264
|
+
accessor maxSimultaneousLights: number;
|
|
265
265
|
private _shadersLoaded;
|
|
266
266
|
/**
|
|
267
267
|
* Instantiates a Terrain Material in the given scene
|
|
@@ -491,12 +491,12 @@ declare namespace BABYLON {
|
|
|
491
491
|
|
|
492
492
|
export class SimpleMaterial extends PushMaterial {
|
|
493
493
|
private _diffuseTexture;
|
|
494
|
-
diffuseTexture: BaseTexture;
|
|
494
|
+
accessor diffuseTexture: BaseTexture;
|
|
495
495
|
diffuseColor: Color3;
|
|
496
496
|
private _disableLighting;
|
|
497
|
-
disableLighting: boolean;
|
|
497
|
+
accessor disableLighting: boolean;
|
|
498
498
|
private _maxSimultaneousLights;
|
|
499
|
-
maxSimultaneousLights: number;
|
|
499
|
+
accessor maxSimultaneousLights: number;
|
|
500
500
|
private _shadersLoaded;
|
|
501
501
|
/**
|
|
502
502
|
* Instantiates a Simple Material in the given scene
|
|
@@ -610,12 +610,12 @@ declare namespace BABYLON {
|
|
|
610
610
|
|
|
611
611
|
export class NormalMaterial extends PushMaterial {
|
|
612
612
|
private _diffuseTexture;
|
|
613
|
-
diffuseTexture: BaseTexture;
|
|
613
|
+
accessor diffuseTexture: BaseTexture;
|
|
614
614
|
diffuseColor: Color3;
|
|
615
615
|
private _disableLighting;
|
|
616
|
-
disableLighting: boolean;
|
|
616
|
+
accessor disableLighting: boolean;
|
|
617
617
|
private _maxSimultaneousLights;
|
|
618
|
-
maxSimultaneousLights: number;
|
|
618
|
+
accessor maxSimultaneousLights: number;
|
|
619
619
|
private _shadersLoaded;
|
|
620
620
|
/**
|
|
621
621
|
* Instantiates a Normal Material in the given scene
|
|
@@ -676,28 +676,28 @@ declare namespace BABYLON {
|
|
|
676
676
|
* Mix textures
|
|
677
677
|
*/
|
|
678
678
|
private _mixTexture1;
|
|
679
|
-
mixTexture1: BaseTexture;
|
|
679
|
+
accessor mixTexture1: BaseTexture;
|
|
680
680
|
private _mixTexture2;
|
|
681
|
-
mixTexture2: BaseTexture;
|
|
681
|
+
accessor mixTexture2: BaseTexture;
|
|
682
682
|
/**
|
|
683
683
|
* Diffuse textures
|
|
684
684
|
*/
|
|
685
685
|
private _diffuseTexture1;
|
|
686
|
-
diffuseTexture1: Texture;
|
|
686
|
+
accessor diffuseTexture1: Texture;
|
|
687
687
|
private _diffuseTexture2;
|
|
688
|
-
diffuseTexture2: Texture;
|
|
688
|
+
accessor diffuseTexture2: Texture;
|
|
689
689
|
private _diffuseTexture3;
|
|
690
|
-
diffuseTexture3: Texture;
|
|
690
|
+
accessor diffuseTexture3: Texture;
|
|
691
691
|
private _diffuseTexture4;
|
|
692
|
-
diffuseTexture4: Texture;
|
|
692
|
+
accessor diffuseTexture4: Texture;
|
|
693
693
|
private _diffuseTexture5;
|
|
694
|
-
diffuseTexture5: Texture;
|
|
694
|
+
accessor diffuseTexture5: Texture;
|
|
695
695
|
private _diffuseTexture6;
|
|
696
|
-
diffuseTexture6: Texture;
|
|
696
|
+
accessor diffuseTexture6: Texture;
|
|
697
697
|
private _diffuseTexture7;
|
|
698
|
-
diffuseTexture7: Texture;
|
|
698
|
+
accessor diffuseTexture7: Texture;
|
|
699
699
|
private _diffuseTexture8;
|
|
700
|
-
diffuseTexture8: Texture;
|
|
700
|
+
accessor diffuseTexture8: Texture;
|
|
701
701
|
/**
|
|
702
702
|
* Uniforms
|
|
703
703
|
*/
|
|
@@ -705,9 +705,9 @@ declare namespace BABYLON {
|
|
|
705
705
|
specularColor: Color3;
|
|
706
706
|
specularPower: number;
|
|
707
707
|
private _disableLighting;
|
|
708
|
-
disableLighting: boolean;
|
|
708
|
+
accessor disableLighting: boolean;
|
|
709
709
|
private _maxSimultaneousLights;
|
|
710
|
-
maxSimultaneousLights: number;
|
|
710
|
+
accessor maxSimultaneousLights: number;
|
|
711
711
|
private _shadersLoaded;
|
|
712
712
|
/**
|
|
713
713
|
* Instantiates a Mix Material in the given scene
|
|
@@ -794,7 +794,7 @@ declare namespace BABYLON {
|
|
|
794
794
|
|
|
795
795
|
export class LavaMaterial extends PushMaterial {
|
|
796
796
|
private _diffuseTexture;
|
|
797
|
-
diffuseTexture: BaseTexture;
|
|
797
|
+
accessor diffuseTexture: BaseTexture;
|
|
798
798
|
noiseTexture: BaseTexture;
|
|
799
799
|
fogColor: Color3;
|
|
800
800
|
speed: number;
|
|
@@ -804,11 +804,11 @@ declare namespace BABYLON {
|
|
|
804
804
|
private _lastTime;
|
|
805
805
|
diffuseColor: Color3;
|
|
806
806
|
private _disableLighting;
|
|
807
|
-
disableLighting: boolean;
|
|
807
|
+
accessor disableLighting: boolean;
|
|
808
808
|
private _unlit;
|
|
809
|
-
unlit: boolean;
|
|
809
|
+
accessor unlit: boolean;
|
|
810
810
|
private _maxSimultaneousLights;
|
|
811
|
-
maxSimultaneousLights: number;
|
|
811
|
+
accessor maxSimultaneousLights: number;
|
|
812
812
|
private _scaledDiffuse;
|
|
813
813
|
private _shadersLoaded;
|
|
814
814
|
/**
|
|
@@ -955,7 +955,7 @@ declare namespace BABYLON {
|
|
|
955
955
|
/**
|
|
956
956
|
* Texture to define opacity of the grid
|
|
957
957
|
*/
|
|
958
|
-
opacityTexture: BaseTexture;
|
|
958
|
+
accessor opacityTexture: BaseTexture;
|
|
959
959
|
private _gridControl;
|
|
960
960
|
private _viewportSize;
|
|
961
961
|
/**
|
|
@@ -1024,7 +1024,7 @@ declare namespace BABYLON {
|
|
|
1024
1024
|
|
|
1025
1025
|
export class GradientMaterial extends PushMaterial {
|
|
1026
1026
|
private _maxSimultaneousLights;
|
|
1027
|
-
maxSimultaneousLights: number;
|
|
1027
|
+
accessor maxSimultaneousLights: number;
|
|
1028
1028
|
topColor: Color3;
|
|
1029
1029
|
topColorAlpha: number;
|
|
1030
1030
|
bottomColor: Color3;
|
|
@@ -1033,7 +1033,7 @@ declare namespace BABYLON {
|
|
|
1033
1033
|
scale: number;
|
|
1034
1034
|
smoothness: number;
|
|
1035
1035
|
private _disableLighting;
|
|
1036
|
-
disableLighting: boolean;
|
|
1036
|
+
accessor disableLighting: boolean;
|
|
1037
1037
|
private _shadersLoaded;
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Instantiates a Gradient Material in the given scene
|
|
@@ -1088,9 +1088,9 @@ declare namespace BABYLON {
|
|
|
1088
1088
|
|
|
1089
1089
|
export class FurMaterial extends PushMaterial {
|
|
1090
1090
|
private _diffuseTexture;
|
|
1091
|
-
diffuseTexture: BaseTexture;
|
|
1091
|
+
accessor diffuseTexture: BaseTexture;
|
|
1092
1092
|
private _heightTexture;
|
|
1093
|
-
heightTexture: BaseTexture;
|
|
1093
|
+
accessor heightTexture: BaseTexture;
|
|
1094
1094
|
diffuseColor: Color3;
|
|
1095
1095
|
furLength: number;
|
|
1096
1096
|
furAngle: number;
|
|
@@ -1103,9 +1103,9 @@ declare namespace BABYLON {
|
|
|
1103
1103
|
furOcclusion: number;
|
|
1104
1104
|
furTexture: DynamicTexture;
|
|
1105
1105
|
private _disableLighting;
|
|
1106
|
-
disableLighting: boolean;
|
|
1106
|
+
accessor disableLighting: boolean;
|
|
1107
1107
|
private _maxSimultaneousLights;
|
|
1108
|
-
maxSimultaneousLights: number;
|
|
1108
|
+
accessor maxSimultaneousLights: number;
|
|
1109
1109
|
highLevelFur: boolean;
|
|
1110
1110
|
_meshes: AbstractMesh[];
|
|
1111
1111
|
private _furTime;
|
|
@@ -1170,11 +1170,11 @@ declare namespace BABYLON {
|
|
|
1170
1170
|
|
|
1171
1171
|
export class FireMaterial extends PushMaterial {
|
|
1172
1172
|
private _diffuseTexture;
|
|
1173
|
-
diffuseTexture: Nullable<BaseTexture>;
|
|
1173
|
+
accessor diffuseTexture: Nullable<BaseTexture>;
|
|
1174
1174
|
private _distortionTexture;
|
|
1175
|
-
distortionTexture: Nullable<BaseTexture>;
|
|
1175
|
+
accessor distortionTexture: Nullable<BaseTexture>;
|
|
1176
1176
|
private _opacityTexture;
|
|
1177
|
-
opacityTexture: Nullable<BaseTexture>;
|
|
1177
|
+
accessor opacityTexture: Nullable<BaseTexture>;
|
|
1178
1178
|
diffuseColor: Color3;
|
|
1179
1179
|
speed: number;
|
|
1180
1180
|
private _scaledDiffuse;
|
|
@@ -1807,14 +1807,14 @@ declare namespace BABYLON {
|
|
|
1807
1807
|
|
|
1808
1808
|
export class CellMaterial extends PushMaterial {
|
|
1809
1809
|
private _diffuseTexture;
|
|
1810
|
-
diffuseTexture: BaseTexture;
|
|
1810
|
+
accessor diffuseTexture: BaseTexture;
|
|
1811
1811
|
diffuseColor: Color3;
|
|
1812
1812
|
_computeHighLevel: boolean;
|
|
1813
|
-
computeHighLevel: boolean;
|
|
1813
|
+
accessor computeHighLevel: boolean;
|
|
1814
1814
|
private _disableLighting;
|
|
1815
|
-
disableLighting: boolean;
|
|
1815
|
+
accessor disableLighting: boolean;
|
|
1816
1816
|
private _maxSimultaneousLights;
|
|
1817
|
-
maxSimultaneousLights: number;
|
|
1817
|
+
accessor maxSimultaneousLights: number;
|
|
1818
1818
|
private _shadersLoaded;
|
|
1819
1819
|
/**
|
|
1820
1820
|
* Instantiates a Cell Material in the given scene
|