babylonjs-procedural-textures 5.0.0 → 5.0.3
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
declare module BABYLON {
|
|
3
|
-
export class BrickProceduralTexture extends
|
|
3
|
+
export class BrickProceduralTexture extends ProceduralTexture {
|
|
4
4
|
private _numberOfBricksHeight;
|
|
5
5
|
private _numberOfBricksWidth;
|
|
6
6
|
private _jointColor;
|
|
@@ -11,10 +11,10 @@ declare module BABYLON {
|
|
|
11
11
|
set numberOfBricksHeight(value: number);
|
|
12
12
|
get numberOfBricksWidth(): number;
|
|
13
13
|
set numberOfBricksWidth(value: number);
|
|
14
|
-
get jointColor():
|
|
15
|
-
set jointColor(value:
|
|
16
|
-
get brickColor():
|
|
17
|
-
set brickColor(value:
|
|
14
|
+
get jointColor(): Color3;
|
|
15
|
+
set jointColor(value: Color3);
|
|
16
|
+
get brickColor(): Color3;
|
|
17
|
+
set brickColor(value: Color3);
|
|
18
18
|
/**
|
|
19
19
|
* Serializes this brick procedural texture
|
|
20
20
|
* @returns a serialized brick procedural texture object
|
|
@@ -40,17 +40,17 @@ declare module BABYLON {
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
export class CloudProceduralTexture extends
|
|
43
|
+
export class CloudProceduralTexture extends ProceduralTexture {
|
|
44
44
|
private _skyColor;
|
|
45
45
|
private _cloudColor;
|
|
46
46
|
private _amplitude;
|
|
47
47
|
private _numOctaves;
|
|
48
48
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
49
49
|
updateShaderUniforms(): void;
|
|
50
|
-
get skyColor():
|
|
51
|
-
set skyColor(value:
|
|
52
|
-
get cloudColor():
|
|
53
|
-
set cloudColor(value:
|
|
50
|
+
get skyColor(): Color4;
|
|
51
|
+
set skyColor(value: Color4);
|
|
52
|
+
get cloudColor(): Color4;
|
|
53
|
+
set cloudColor(value: Color4);
|
|
54
54
|
get amplitude(): number;
|
|
55
55
|
set amplitude(value: number);
|
|
56
56
|
get numOctaves(): number;
|
|
@@ -80,7 +80,7 @@ declare module BABYLON {
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
export class FireProceduralTexture extends
|
|
83
|
+
export class FireProceduralTexture extends ProceduralTexture {
|
|
84
84
|
private _time;
|
|
85
85
|
private _speed;
|
|
86
86
|
private _autoGenerateTime;
|
|
@@ -89,18 +89,18 @@ declare module BABYLON {
|
|
|
89
89
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
90
90
|
updateShaderUniforms(): void;
|
|
91
91
|
render(useCameraPostProcess?: boolean): void;
|
|
92
|
-
static get PurpleFireColors():
|
|
93
|
-
static get GreenFireColors():
|
|
94
|
-
static get RedFireColors():
|
|
95
|
-
static get BlueFireColors():
|
|
92
|
+
static get PurpleFireColors(): Color3[];
|
|
93
|
+
static get GreenFireColors(): Color3[];
|
|
94
|
+
static get RedFireColors(): Color3[];
|
|
95
|
+
static get BlueFireColors(): Color3[];
|
|
96
96
|
get autoGenerateTime(): boolean;
|
|
97
97
|
set autoGenerateTime(value: boolean);
|
|
98
|
-
get fireColors():
|
|
99
|
-
set fireColors(value:
|
|
98
|
+
get fireColors(): Color3[];
|
|
99
|
+
set fireColors(value: Color3[]);
|
|
100
100
|
get time(): number;
|
|
101
101
|
set time(value: number);
|
|
102
|
-
get speed():
|
|
103
|
-
set speed(value:
|
|
102
|
+
get speed(): Vector2;
|
|
103
|
+
set speed(value: Vector2);
|
|
104
104
|
get alphaThreshold(): number;
|
|
105
105
|
set alphaThreshold(value: number);
|
|
106
106
|
/**
|
|
@@ -128,15 +128,15 @@ declare module BABYLON {
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
export class GrassProceduralTexture extends
|
|
131
|
+
export class GrassProceduralTexture extends ProceduralTexture {
|
|
132
132
|
private _grassColors;
|
|
133
133
|
private _groundColor;
|
|
134
134
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
135
135
|
updateShaderUniforms(): void;
|
|
136
|
-
get grassColors():
|
|
137
|
-
set grassColors(value:
|
|
138
|
-
get groundColor():
|
|
139
|
-
set groundColor(value:
|
|
136
|
+
get grassColors(): Color3[];
|
|
137
|
+
set grassColors(value: Color3[]);
|
|
138
|
+
get groundColor(): Color3;
|
|
139
|
+
set groundColor(value: Color3);
|
|
140
140
|
/**
|
|
141
141
|
* Serializes this grass procedural texture
|
|
142
142
|
* @returns a serialized grass procedural texture object
|
|
@@ -186,7 +186,7 @@ declare module BABYLON {
|
|
|
186
186
|
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
export class MarbleProceduralTexture extends
|
|
189
|
+
export class MarbleProceduralTexture extends ProceduralTexture {
|
|
190
190
|
private _numberOfTilesHeight;
|
|
191
191
|
private _numberOfTilesWidth;
|
|
192
192
|
private _amplitude;
|
|
@@ -199,8 +199,8 @@ declare module BABYLON {
|
|
|
199
199
|
set amplitude(value: number);
|
|
200
200
|
get numberOfTilesWidth(): number;
|
|
201
201
|
set numberOfTilesWidth(value: number);
|
|
202
|
-
get jointColor():
|
|
203
|
-
set jointColor(value:
|
|
202
|
+
get jointColor(): Color3;
|
|
203
|
+
set jointColor(value: Color3);
|
|
204
204
|
/**
|
|
205
205
|
* Serializes this marble procedural texture
|
|
206
206
|
* @returns a serialized marble procedural texture object
|
|
@@ -226,7 +226,7 @@ declare module BABYLON {
|
|
|
226
226
|
|
|
227
227
|
|
|
228
228
|
|
|
229
|
-
export class NormalMapProceduralTexture extends
|
|
229
|
+
export class NormalMapProceduralTexture extends ProceduralTexture {
|
|
230
230
|
private _baseTexture;
|
|
231
231
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
232
232
|
updateShaderUniforms(): void;
|
|
@@ -260,7 +260,7 @@ declare module BABYLON {
|
|
|
260
260
|
|
|
261
261
|
|
|
262
262
|
|
|
263
|
-
export class PerlinNoiseProceduralTexture extends
|
|
263
|
+
export class PerlinNoiseProceduralTexture extends ProceduralTexture {
|
|
264
264
|
time: number;
|
|
265
265
|
timeScale: number;
|
|
266
266
|
translationSpeed: number;
|
|
@@ -294,12 +294,12 @@ declare module BABYLON {
|
|
|
294
294
|
|
|
295
295
|
|
|
296
296
|
|
|
297
|
-
export class RoadProceduralTexture extends
|
|
297
|
+
export class RoadProceduralTexture extends ProceduralTexture {
|
|
298
298
|
private _roadColor;
|
|
299
299
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
300
300
|
updateShaderUniforms(): void;
|
|
301
|
-
get roadColor():
|
|
302
|
-
set roadColor(value:
|
|
301
|
+
get roadColor(): Color3;
|
|
302
|
+
set roadColor(value: Color3);
|
|
303
303
|
/**
|
|
304
304
|
* Serializes this road procedural texture
|
|
305
305
|
* @returns a serialized road procedural texture object
|
|
@@ -325,7 +325,7 @@ declare module BABYLON {
|
|
|
325
325
|
|
|
326
326
|
|
|
327
327
|
|
|
328
|
-
export class StarfieldProceduralTexture extends
|
|
328
|
+
export class StarfieldProceduralTexture extends ProceduralTexture {
|
|
329
329
|
private _time;
|
|
330
330
|
private _alpha;
|
|
331
331
|
private _beta;
|
|
@@ -386,15 +386,15 @@ declare module BABYLON {
|
|
|
386
386
|
|
|
387
387
|
|
|
388
388
|
|
|
389
|
-
export class WoodProceduralTexture extends
|
|
389
|
+
export class WoodProceduralTexture extends ProceduralTexture {
|
|
390
390
|
private _ampScale;
|
|
391
391
|
private _woodColor;
|
|
392
392
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
393
393
|
updateShaderUniforms(): void;
|
|
394
394
|
get ampScale(): number;
|
|
395
395
|
set ampScale(value: number);
|
|
396
|
-
get woodColor():
|
|
397
|
-
set woodColor(value:
|
|
396
|
+
get woodColor(): Color3;
|
|
397
|
+
set woodColor(value: Color3);
|
|
398
398
|
/**
|
|
399
399
|
* Serializes this wood procedural texture
|
|
400
400
|
* @returns a serialized wood procedural texture object
|
|
@@ -557,7 +557,7 @@ declare module "babylonjs-procedural-textures" {
|
|
|
557
557
|
|
|
558
558
|
|
|
559
559
|
declare module BABYLON {
|
|
560
|
-
export class BrickProceduralTexture extends
|
|
560
|
+
export class BrickProceduralTexture extends ProceduralTexture {
|
|
561
561
|
private _numberOfBricksHeight;
|
|
562
562
|
private _numberOfBricksWidth;
|
|
563
563
|
private _jointColor;
|
|
@@ -568,10 +568,10 @@ declare module BABYLON {
|
|
|
568
568
|
set numberOfBricksHeight(value: number);
|
|
569
569
|
get numberOfBricksWidth(): number;
|
|
570
570
|
set numberOfBricksWidth(value: number);
|
|
571
|
-
get jointColor():
|
|
572
|
-
set jointColor(value:
|
|
573
|
-
get brickColor():
|
|
574
|
-
set brickColor(value:
|
|
571
|
+
get jointColor(): Color3;
|
|
572
|
+
set jointColor(value: Color3);
|
|
573
|
+
get brickColor(): Color3;
|
|
574
|
+
set brickColor(value: Color3);
|
|
575
575
|
/**
|
|
576
576
|
* Serializes this brick procedural texture
|
|
577
577
|
* @returns a serialized brick procedural texture object
|
|
@@ -597,17 +597,17 @@ declare module BABYLON {
|
|
|
597
597
|
|
|
598
598
|
|
|
599
599
|
|
|
600
|
-
export class CloudProceduralTexture extends
|
|
600
|
+
export class CloudProceduralTexture extends ProceduralTexture {
|
|
601
601
|
private _skyColor;
|
|
602
602
|
private _cloudColor;
|
|
603
603
|
private _amplitude;
|
|
604
604
|
private _numOctaves;
|
|
605
605
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
606
606
|
updateShaderUniforms(): void;
|
|
607
|
-
get skyColor():
|
|
608
|
-
set skyColor(value:
|
|
609
|
-
get cloudColor():
|
|
610
|
-
set cloudColor(value:
|
|
607
|
+
get skyColor(): Color4;
|
|
608
|
+
set skyColor(value: Color4);
|
|
609
|
+
get cloudColor(): Color4;
|
|
610
|
+
set cloudColor(value: Color4);
|
|
611
611
|
get amplitude(): number;
|
|
612
612
|
set amplitude(value: number);
|
|
613
613
|
get numOctaves(): number;
|
|
@@ -637,7 +637,7 @@ declare module BABYLON {
|
|
|
637
637
|
|
|
638
638
|
|
|
639
639
|
|
|
640
|
-
export class FireProceduralTexture extends
|
|
640
|
+
export class FireProceduralTexture extends ProceduralTexture {
|
|
641
641
|
private _time;
|
|
642
642
|
private _speed;
|
|
643
643
|
private _autoGenerateTime;
|
|
@@ -646,18 +646,18 @@ declare module BABYLON {
|
|
|
646
646
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
647
647
|
updateShaderUniforms(): void;
|
|
648
648
|
render(useCameraPostProcess?: boolean): void;
|
|
649
|
-
static get PurpleFireColors():
|
|
650
|
-
static get GreenFireColors():
|
|
651
|
-
static get RedFireColors():
|
|
652
|
-
static get BlueFireColors():
|
|
649
|
+
static get PurpleFireColors(): Color3[];
|
|
650
|
+
static get GreenFireColors(): Color3[];
|
|
651
|
+
static get RedFireColors(): Color3[];
|
|
652
|
+
static get BlueFireColors(): Color3[];
|
|
653
653
|
get autoGenerateTime(): boolean;
|
|
654
654
|
set autoGenerateTime(value: boolean);
|
|
655
|
-
get fireColors():
|
|
656
|
-
set fireColors(value:
|
|
655
|
+
get fireColors(): Color3[];
|
|
656
|
+
set fireColors(value: Color3[]);
|
|
657
657
|
get time(): number;
|
|
658
658
|
set time(value: number);
|
|
659
|
-
get speed():
|
|
660
|
-
set speed(value:
|
|
659
|
+
get speed(): Vector2;
|
|
660
|
+
set speed(value: Vector2);
|
|
661
661
|
get alphaThreshold(): number;
|
|
662
662
|
set alphaThreshold(value: number);
|
|
663
663
|
/**
|
|
@@ -685,15 +685,15 @@ declare module BABYLON {
|
|
|
685
685
|
|
|
686
686
|
|
|
687
687
|
|
|
688
|
-
export class GrassProceduralTexture extends
|
|
688
|
+
export class GrassProceduralTexture extends ProceduralTexture {
|
|
689
689
|
private _grassColors;
|
|
690
690
|
private _groundColor;
|
|
691
691
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
692
692
|
updateShaderUniforms(): void;
|
|
693
|
-
get grassColors():
|
|
694
|
-
set grassColors(value:
|
|
695
|
-
get groundColor():
|
|
696
|
-
set groundColor(value:
|
|
693
|
+
get grassColors(): Color3[];
|
|
694
|
+
set grassColors(value: Color3[]);
|
|
695
|
+
get groundColor(): Color3;
|
|
696
|
+
set groundColor(value: Color3);
|
|
697
697
|
/**
|
|
698
698
|
* Serializes this grass procedural texture
|
|
699
699
|
* @returns a serialized grass procedural texture object
|
|
@@ -743,7 +743,7 @@ declare module BABYLON {
|
|
|
743
743
|
|
|
744
744
|
|
|
745
745
|
|
|
746
|
-
export class MarbleProceduralTexture extends
|
|
746
|
+
export class MarbleProceduralTexture extends ProceduralTexture {
|
|
747
747
|
private _numberOfTilesHeight;
|
|
748
748
|
private _numberOfTilesWidth;
|
|
749
749
|
private _amplitude;
|
|
@@ -756,8 +756,8 @@ declare module BABYLON {
|
|
|
756
756
|
set amplitude(value: number);
|
|
757
757
|
get numberOfTilesWidth(): number;
|
|
758
758
|
set numberOfTilesWidth(value: number);
|
|
759
|
-
get jointColor():
|
|
760
|
-
set jointColor(value:
|
|
759
|
+
get jointColor(): Color3;
|
|
760
|
+
set jointColor(value: Color3);
|
|
761
761
|
/**
|
|
762
762
|
* Serializes this marble procedural texture
|
|
763
763
|
* @returns a serialized marble procedural texture object
|
|
@@ -783,7 +783,7 @@ declare module BABYLON {
|
|
|
783
783
|
|
|
784
784
|
|
|
785
785
|
|
|
786
|
-
export class NormalMapProceduralTexture extends
|
|
786
|
+
export class NormalMapProceduralTexture extends ProceduralTexture {
|
|
787
787
|
private _baseTexture;
|
|
788
788
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
789
789
|
updateShaderUniforms(): void;
|
|
@@ -817,7 +817,7 @@ declare module BABYLON {
|
|
|
817
817
|
|
|
818
818
|
|
|
819
819
|
|
|
820
|
-
export class PerlinNoiseProceduralTexture extends
|
|
820
|
+
export class PerlinNoiseProceduralTexture extends ProceduralTexture {
|
|
821
821
|
time: number;
|
|
822
822
|
timeScale: number;
|
|
823
823
|
translationSpeed: number;
|
|
@@ -851,12 +851,12 @@ declare module BABYLON {
|
|
|
851
851
|
|
|
852
852
|
|
|
853
853
|
|
|
854
|
-
export class RoadProceduralTexture extends
|
|
854
|
+
export class RoadProceduralTexture extends ProceduralTexture {
|
|
855
855
|
private _roadColor;
|
|
856
856
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
857
857
|
updateShaderUniforms(): void;
|
|
858
|
-
get roadColor():
|
|
859
|
-
set roadColor(value:
|
|
858
|
+
get roadColor(): Color3;
|
|
859
|
+
set roadColor(value: Color3);
|
|
860
860
|
/**
|
|
861
861
|
* Serializes this road procedural texture
|
|
862
862
|
* @returns a serialized road procedural texture object
|
|
@@ -882,7 +882,7 @@ declare module BABYLON {
|
|
|
882
882
|
|
|
883
883
|
|
|
884
884
|
|
|
885
|
-
export class StarfieldProceduralTexture extends
|
|
885
|
+
export class StarfieldProceduralTexture extends ProceduralTexture {
|
|
886
886
|
private _time;
|
|
887
887
|
private _alpha;
|
|
888
888
|
private _beta;
|
|
@@ -943,15 +943,15 @@ declare module BABYLON {
|
|
|
943
943
|
|
|
944
944
|
|
|
945
945
|
|
|
946
|
-
export class WoodProceduralTexture extends
|
|
946
|
+
export class WoodProceduralTexture extends ProceduralTexture {
|
|
947
947
|
private _ampScale;
|
|
948
948
|
private _woodColor;
|
|
949
949
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
950
950
|
updateShaderUniforms(): void;
|
|
951
951
|
get ampScale(): number;
|
|
952
952
|
set ampScale(value: number);
|
|
953
|
-
get woodColor():
|
|
954
|
-
set woodColor(value:
|
|
953
|
+
get woodColor(): Color3;
|
|
954
|
+
set woodColor(value: Color3);
|
|
955
955
|
/**
|
|
956
956
|
* Serializes this wood procedural texture
|
|
957
957
|
* @returns a serialized wood procedural texture object
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-procedural-textures",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"main": "babylonjs.proceduralTextures.js",
|
|
5
5
|
"types": "babylonjs.proceduralTextures.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.0.
|
|
17
|
+
"babylonjs": "^5.0.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|