babylonjs-procedural-textures 7.16.0 → 7.17.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.brickProceduralTexture.js +1 -5
- package/babylon.brickProceduralTexture.min.js +1 -1
- package/babylon.brickProceduralTexture.min.js.map +1 -1
- package/babylon.cloudProceduralTexture.js +1 -5
- package/babylon.cloudProceduralTexture.min.js +1 -1
- package/babylon.cloudProceduralTexture.min.js.map +1 -1
- package/babylon.fireProceduralTexture.js +1 -5
- package/babylon.fireProceduralTexture.min.js +1 -1
- package/babylon.fireProceduralTexture.min.js.map +1 -1
- package/babylon.grassProceduralTexture.js +1 -5
- package/babylon.grassProceduralTexture.min.js +1 -1
- package/babylon.grassProceduralTexture.min.js.map +1 -1
- package/babylon.marbleProceduralTexture.js +1 -5
- package/babylon.marbleProceduralTexture.min.js +1 -1
- package/babylon.marbleProceduralTexture.min.js.map +1 -1
- package/babylon.normalMapProceduralTexture.js +1 -5
- package/babylon.normalMapProceduralTexture.min.js +1 -1
- package/babylon.normalMapProceduralTexture.min.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.js +1 -5
- package/babylon.perlinNoiseProceduralTexture.min.js +1 -1
- package/babylon.perlinNoiseProceduralTexture.min.js.map +1 -1
- package/babylon.roadProceduralTexture.js +1 -5
- package/babylon.roadProceduralTexture.min.js +1 -1
- package/babylon.roadProceduralTexture.min.js.map +1 -1
- package/babylon.starfieldProceduralTexture.js +1 -5
- package/babylon.starfieldProceduralTexture.min.js +1 -1
- package/babylon.starfieldProceduralTexture.min.js.map +1 -1
- package/babylon.woodProceduralTexture.js +1 -5
- package/babylon.woodProceduralTexture.min.js +1 -1
- package/babylon.woodProceduralTexture.min.js.map +1 -1
- package/babylonjs.proceduralTextures.d.ts +209 -209
- package/babylonjs.proceduralTextures.js +1 -5
- package/babylonjs.proceduralTextures.min.js +1 -1
- package/babylonjs.proceduralTextures.min.js.map +1 -1
- package/babylonjs.proceduralTextures.module.d.ts +517 -517
- package/package.json +2 -2
|
@@ -1,222 +1,264 @@
|
|
|
1
1
|
|
|
2
|
-
declare module "babylonjs-procedural-textures/
|
|
2
|
+
declare module "babylonjs-procedural-textures/index" {
|
|
3
|
+
export * from "babylonjs-procedural-textures/brick/index";
|
|
4
|
+
export * from "babylonjs-procedural-textures/cloud/index";
|
|
5
|
+
export * from "babylonjs-procedural-textures/fire/index";
|
|
6
|
+
export * from "babylonjs-procedural-textures/grass/index";
|
|
7
|
+
export * from "babylonjs-procedural-textures/marble/index";
|
|
8
|
+
export * from "babylonjs-procedural-textures/normalMap/index";
|
|
9
|
+
export * from "babylonjs-procedural-textures/perlinNoise/index";
|
|
10
|
+
export * from "babylonjs-procedural-textures/road/index";
|
|
11
|
+
export * from "babylonjs-procedural-textures/starfield/index";
|
|
12
|
+
export * from "babylonjs-procedural-textures/wood/index";
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
declare module "babylonjs-procedural-textures/wood/woodProceduralTexture.fragment" {
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const woodProceduralTexturePixelShader: {
|
|
18
|
+
name: string;
|
|
19
|
+
shader: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
declare module "babylonjs-procedural-textures/wood/woodProceduralTexture" {
|
|
3
24
|
import { Color3 } from "babylonjs/Maths/math.color";
|
|
4
25
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
5
26
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
6
27
|
import { Scene } from "babylonjs/scene";
|
|
7
28
|
import { Nullable } from "babylonjs/types";
|
|
8
|
-
import "babylonjs-procedural-textures/
|
|
9
|
-
export class
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private _jointColor;
|
|
13
|
-
private _brickColor;
|
|
29
|
+
import "babylonjs-procedural-textures/wood/woodProceduralTexture.fragment";
|
|
30
|
+
export class WoodProceduralTexture extends ProceduralTexture {
|
|
31
|
+
private _ampScale;
|
|
32
|
+
private _woodColor;
|
|
14
33
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
15
34
|
updateShaderUniforms(): void;
|
|
16
|
-
get
|
|
17
|
-
set
|
|
18
|
-
get
|
|
19
|
-
set
|
|
20
|
-
get jointColor(): Color3;
|
|
21
|
-
set jointColor(value: Color3);
|
|
22
|
-
get brickColor(): Color3;
|
|
23
|
-
set brickColor(value: Color3);
|
|
35
|
+
get ampScale(): number;
|
|
36
|
+
set ampScale(value: number);
|
|
37
|
+
get woodColor(): Color3;
|
|
38
|
+
set woodColor(value: Color3);
|
|
24
39
|
/**
|
|
25
|
-
* Serializes this
|
|
26
|
-
* @returns a serialized
|
|
40
|
+
* Serializes this wood procedural texture
|
|
41
|
+
* @returns a serialized wood procedural texture object
|
|
27
42
|
*/
|
|
28
43
|
serialize(): any;
|
|
29
44
|
/**
|
|
30
|
-
* Creates a
|
|
45
|
+
* Creates a Wood Procedural Texture from parsed wood procedural texture data
|
|
31
46
|
* @param parsedTexture defines parsed texture data
|
|
32
47
|
* @param scene defines the current scene
|
|
33
|
-
* @param rootUrl defines the root URL containing
|
|
34
|
-
* @returns a parsed
|
|
48
|
+
* @param rootUrl defines the root URL containing wood procedural texture information
|
|
49
|
+
* @returns a parsed Wood Procedural Texture
|
|
35
50
|
*/
|
|
36
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
51
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): WoodProceduralTexture;
|
|
37
52
|
}
|
|
38
53
|
|
|
39
54
|
}
|
|
40
|
-
declare module "babylonjs-procedural-textures/
|
|
55
|
+
declare module "babylonjs-procedural-textures/wood/index" {
|
|
56
|
+
export * from "babylonjs-procedural-textures/wood/woodProceduralTexture";
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
declare module "babylonjs-procedural-textures/starfield/starfieldProceduralTexture.fragment" {
|
|
41
60
|
/** @internal */
|
|
42
|
-
export const
|
|
61
|
+
export const starfieldProceduralTexturePixelShader: {
|
|
43
62
|
name: string;
|
|
44
63
|
shader: string;
|
|
45
64
|
};
|
|
46
65
|
|
|
47
66
|
}
|
|
48
|
-
declare module "babylonjs-procedural-textures/
|
|
49
|
-
export * from "babylonjs-procedural-textures/brick/brickProceduralTexture";
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
declare module "babylonjs-procedural-textures/cloud/cloudProceduralTexture" {
|
|
53
|
-
import { Color4 } from "babylonjs/Maths/math.color";
|
|
67
|
+
declare module "babylonjs-procedural-textures/starfield/starfieldProceduralTexture" {
|
|
54
68
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
55
69
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
56
70
|
import { Scene } from "babylonjs/scene";
|
|
57
71
|
import { Nullable } from "babylonjs/types";
|
|
58
|
-
import "babylonjs-procedural-textures/
|
|
59
|
-
export class
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
63
|
-
private
|
|
72
|
+
import "babylonjs-procedural-textures/starfield/starfieldProceduralTexture.fragment";
|
|
73
|
+
export class StarfieldProceduralTexture extends ProceduralTexture {
|
|
74
|
+
private _time;
|
|
75
|
+
private _alpha;
|
|
76
|
+
private _beta;
|
|
77
|
+
private _zoom;
|
|
78
|
+
private _formuparam;
|
|
79
|
+
private _stepsize;
|
|
80
|
+
private _tile;
|
|
81
|
+
private _brightness;
|
|
82
|
+
private _darkmatter;
|
|
83
|
+
private _distfading;
|
|
84
|
+
private _saturation;
|
|
64
85
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
65
86
|
updateShaderUniforms(): void;
|
|
66
|
-
get
|
|
67
|
-
set
|
|
68
|
-
get
|
|
69
|
-
set
|
|
70
|
-
get
|
|
71
|
-
set
|
|
72
|
-
get
|
|
73
|
-
set
|
|
87
|
+
get time(): number;
|
|
88
|
+
set time(value: number);
|
|
89
|
+
get alpha(): number;
|
|
90
|
+
set alpha(value: number);
|
|
91
|
+
get beta(): number;
|
|
92
|
+
set beta(value: number);
|
|
93
|
+
get formuparam(): number;
|
|
94
|
+
set formuparam(value: number);
|
|
95
|
+
get stepsize(): number;
|
|
96
|
+
set stepsize(value: number);
|
|
97
|
+
get zoom(): number;
|
|
98
|
+
set zoom(value: number);
|
|
99
|
+
get tile(): number;
|
|
100
|
+
set tile(value: number);
|
|
101
|
+
get brightness(): number;
|
|
102
|
+
set brightness(value: number);
|
|
103
|
+
get darkmatter(): number;
|
|
104
|
+
set darkmatter(value: number);
|
|
105
|
+
get distfading(): number;
|
|
106
|
+
set distfading(value: number);
|
|
107
|
+
get saturation(): number;
|
|
108
|
+
set saturation(value: number);
|
|
74
109
|
/**
|
|
75
|
-
* Serializes this
|
|
76
|
-
* @returns a serialized
|
|
110
|
+
* Serializes this starfield procedural texture
|
|
111
|
+
* @returns a serialized starfield procedural texture object
|
|
77
112
|
*/
|
|
78
113
|
serialize(): any;
|
|
79
114
|
/**
|
|
80
|
-
* Creates a
|
|
115
|
+
* Creates a Starfield Procedural Texture from parsed startfield procedural texture data
|
|
81
116
|
* @param parsedTexture defines parsed texture data
|
|
82
117
|
* @param scene defines the current scene
|
|
83
|
-
* @param rootUrl defines the root URL containing
|
|
84
|
-
* @returns a parsed
|
|
118
|
+
* @param rootUrl defines the root URL containing startfield procedural texture information
|
|
119
|
+
* @returns a parsed Starfield Procedural Texture
|
|
85
120
|
*/
|
|
86
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
121
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): StarfieldProceduralTexture;
|
|
87
122
|
}
|
|
88
123
|
|
|
89
124
|
}
|
|
90
|
-
declare module "babylonjs-procedural-textures/
|
|
125
|
+
declare module "babylonjs-procedural-textures/starfield/index" {
|
|
126
|
+
export * from "babylonjs-procedural-textures/starfield/starfieldProceduralTexture";
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
declare module "babylonjs-procedural-textures/road/roadProceduralTexture.fragment" {
|
|
91
130
|
/** @internal */
|
|
92
|
-
export const
|
|
131
|
+
export const roadProceduralTexturePixelShader: {
|
|
93
132
|
name: string;
|
|
94
133
|
shader: string;
|
|
95
134
|
};
|
|
96
135
|
|
|
97
136
|
}
|
|
98
|
-
declare module "babylonjs-procedural-textures/
|
|
99
|
-
export * from "babylonjs-procedural-textures/cloud/cloudProceduralTexture";
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
declare module "babylonjs-procedural-textures/fire/fireProceduralTexture" {
|
|
103
|
-
import { Vector2 } from "babylonjs/Maths/math.vector";
|
|
137
|
+
declare module "babylonjs-procedural-textures/road/roadProceduralTexture" {
|
|
104
138
|
import { Color3 } from "babylonjs/Maths/math.color";
|
|
105
139
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
106
140
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
107
141
|
import { Scene } from "babylonjs/scene";
|
|
108
142
|
import { Nullable } from "babylonjs/types";
|
|
109
|
-
import "babylonjs-procedural-textures/
|
|
110
|
-
export class
|
|
111
|
-
private
|
|
112
|
-
private _speed;
|
|
113
|
-
private _autoGenerateTime;
|
|
114
|
-
private _fireColors;
|
|
115
|
-
private _alphaThreshold;
|
|
143
|
+
import "babylonjs-procedural-textures/road/roadProceduralTexture.fragment";
|
|
144
|
+
export class RoadProceduralTexture extends ProceduralTexture {
|
|
145
|
+
private _roadColor;
|
|
116
146
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
117
147
|
updateShaderUniforms(): void;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
static get GreenFireColors(): Color3[];
|
|
121
|
-
static get RedFireColors(): Color3[];
|
|
122
|
-
static get BlueFireColors(): Color3[];
|
|
123
|
-
get autoGenerateTime(): boolean;
|
|
124
|
-
set autoGenerateTime(value: boolean);
|
|
125
|
-
get fireColors(): Color3[];
|
|
126
|
-
set fireColors(value: Color3[]);
|
|
127
|
-
get time(): number;
|
|
128
|
-
set time(value: number);
|
|
129
|
-
get speed(): Vector2;
|
|
130
|
-
set speed(value: Vector2);
|
|
131
|
-
get alphaThreshold(): number;
|
|
132
|
-
set alphaThreshold(value: number);
|
|
148
|
+
get roadColor(): Color3;
|
|
149
|
+
set roadColor(value: Color3);
|
|
133
150
|
/**
|
|
134
|
-
* Serializes this
|
|
135
|
-
* @returns a serialized
|
|
151
|
+
* Serializes this road procedural texture
|
|
152
|
+
* @returns a serialized road procedural texture object
|
|
136
153
|
*/
|
|
137
154
|
serialize(): any;
|
|
138
155
|
/**
|
|
139
|
-
* Creates a
|
|
156
|
+
* Creates a Road Procedural Texture from parsed road procedural texture data
|
|
140
157
|
* @param parsedTexture defines parsed texture data
|
|
141
158
|
* @param scene defines the current scene
|
|
142
|
-
* @param rootUrl defines the root URL containing
|
|
143
|
-
* @returns a parsed
|
|
159
|
+
* @param rootUrl defines the root URL containing road procedural texture information
|
|
160
|
+
* @returns a parsed Road Procedural Texture
|
|
144
161
|
*/
|
|
145
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
162
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): RoadProceduralTexture;
|
|
146
163
|
}
|
|
147
164
|
|
|
148
165
|
}
|
|
149
|
-
declare module "babylonjs-procedural-textures/
|
|
166
|
+
declare module "babylonjs-procedural-textures/road/index" {
|
|
167
|
+
export * from "babylonjs-procedural-textures/road/roadProceduralTexture";
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
declare module "babylonjs-procedural-textures/perlinNoise/perlinNoiseProceduralTexture.fragment" {
|
|
150
171
|
/** @internal */
|
|
151
|
-
export const
|
|
172
|
+
export const perlinNoiseProceduralTexturePixelShader: {
|
|
152
173
|
name: string;
|
|
153
174
|
shader: string;
|
|
154
175
|
};
|
|
155
176
|
|
|
156
177
|
}
|
|
157
|
-
declare module "babylonjs-procedural-textures/
|
|
158
|
-
export * from "babylonjs-procedural-textures/fire/fireProceduralTexture";
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
declare module "babylonjs-procedural-textures/grass/grassProceduralTexture" {
|
|
162
|
-
import { Color3 } from "babylonjs/Maths/math.color";
|
|
178
|
+
declare module "babylonjs-procedural-textures/perlinNoise/perlinNoiseProceduralTexture" {
|
|
163
179
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
164
180
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
165
181
|
import { Scene } from "babylonjs/scene";
|
|
166
182
|
import { Nullable } from "babylonjs/types";
|
|
167
|
-
import "babylonjs-procedural-textures/
|
|
168
|
-
export class
|
|
169
|
-
|
|
170
|
-
|
|
183
|
+
import "babylonjs-procedural-textures/perlinNoise/perlinNoiseProceduralTexture.fragment";
|
|
184
|
+
export class PerlinNoiseProceduralTexture extends ProceduralTexture {
|
|
185
|
+
time: number;
|
|
186
|
+
timeScale: number;
|
|
187
|
+
translationSpeed: number;
|
|
188
|
+
private _currentTranslation;
|
|
171
189
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
172
190
|
updateShaderUniforms(): void;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
get groundColor(): Color3;
|
|
176
|
-
set groundColor(value: Color3);
|
|
191
|
+
render(useCameraPostProcess?: boolean): void;
|
|
192
|
+
resize(size: any, generateMipMaps: any): void;
|
|
177
193
|
/**
|
|
178
|
-
* Serializes this
|
|
179
|
-
* @returns a serialized
|
|
194
|
+
* Serializes this perlin noise procedural texture
|
|
195
|
+
* @returns a serialized perlin noise procedural texture object
|
|
180
196
|
*/
|
|
181
197
|
serialize(): any;
|
|
182
198
|
/**
|
|
183
|
-
* Creates a
|
|
199
|
+
* Creates a Perlin Noise Procedural Texture from parsed perlin noise procedural texture data
|
|
184
200
|
* @param parsedTexture defines parsed texture data
|
|
185
201
|
* @param scene defines the current scene
|
|
186
|
-
* @param rootUrl defines the root URL containing
|
|
187
|
-
* @returns a parsed
|
|
202
|
+
* @param rootUrl defines the root URL containing perlin noise procedural texture information
|
|
203
|
+
* @returns a parsed Perlin Noise Procedural Texture
|
|
188
204
|
*/
|
|
189
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
205
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): PerlinNoiseProceduralTexture;
|
|
190
206
|
}
|
|
191
207
|
|
|
192
208
|
}
|
|
193
|
-
declare module "babylonjs-procedural-textures/
|
|
209
|
+
declare module "babylonjs-procedural-textures/perlinNoise/index" {
|
|
210
|
+
export * from "babylonjs-procedural-textures/perlinNoise/perlinNoiseProceduralTexture";
|
|
211
|
+
|
|
212
|
+
}
|
|
213
|
+
declare module "babylonjs-procedural-textures/normalMap/normalMapProceduralTexture.fragment" {
|
|
194
214
|
/** @internal */
|
|
195
|
-
export const
|
|
215
|
+
export const normalMapProceduralTexturePixelShader: {
|
|
196
216
|
name: string;
|
|
197
217
|
shader: string;
|
|
198
218
|
};
|
|
199
219
|
|
|
200
220
|
}
|
|
201
|
-
declare module "babylonjs-procedural-textures/
|
|
202
|
-
|
|
221
|
+
declare module "babylonjs-procedural-textures/normalMap/normalMapProceduralTexture" {
|
|
222
|
+
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
223
|
+
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
224
|
+
import { Scene } from "babylonjs/scene";
|
|
225
|
+
import { Nullable } from "babylonjs/types";
|
|
226
|
+
import "babylonjs-procedural-textures/normalMap/normalMapProceduralTexture.fragment";
|
|
227
|
+
export class NormalMapProceduralTexture extends ProceduralTexture {
|
|
228
|
+
private _baseTexture;
|
|
229
|
+
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
230
|
+
updateShaderUniforms(): void;
|
|
231
|
+
render(useCameraPostProcess?: boolean): void;
|
|
232
|
+
resize(size: any, generateMipMaps: any): void;
|
|
233
|
+
isReady(): boolean;
|
|
234
|
+
get baseTexture(): Texture;
|
|
235
|
+
set baseTexture(texture: Texture);
|
|
236
|
+
/**
|
|
237
|
+
* Serializes this normal map procedural texture
|
|
238
|
+
* @returns a serialized normal map procedural texture object
|
|
239
|
+
*/
|
|
240
|
+
serialize(): any;
|
|
241
|
+
/**
|
|
242
|
+
* Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
|
|
243
|
+
* @param parsedTexture defines parsed texture data
|
|
244
|
+
* @param scene defines the current scene
|
|
245
|
+
* @param rootUrl defines the root URL containing normal map procedural texture information
|
|
246
|
+
* @returns a parsed Normal Map Procedural Texture
|
|
247
|
+
*/
|
|
248
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): NormalMapProceduralTexture;
|
|
249
|
+
}
|
|
203
250
|
|
|
204
251
|
}
|
|
205
|
-
declare module "babylonjs-procedural-textures/index" {
|
|
206
|
-
export * from "babylonjs-procedural-textures/
|
|
207
|
-
export * from "babylonjs-procedural-textures/cloud/index";
|
|
208
|
-
export * from "babylonjs-procedural-textures/fire/index";
|
|
209
|
-
export * from "babylonjs-procedural-textures/grass/index";
|
|
210
|
-
export * from "babylonjs-procedural-textures/marble/index";
|
|
211
|
-
export * from "babylonjs-procedural-textures/normalMap/index";
|
|
212
|
-
export * from "babylonjs-procedural-textures/perlinNoise/index";
|
|
213
|
-
export * from "babylonjs-procedural-textures/road/index";
|
|
214
|
-
export * from "babylonjs-procedural-textures/starfield/index";
|
|
215
|
-
export * from "babylonjs-procedural-textures/wood/index";
|
|
252
|
+
declare module "babylonjs-procedural-textures/normalMap/index" {
|
|
253
|
+
export * from "babylonjs-procedural-textures/normalMap/normalMapProceduralTexture";
|
|
216
254
|
|
|
217
255
|
}
|
|
218
|
-
declare module "babylonjs-procedural-textures/marble/
|
|
219
|
-
|
|
256
|
+
declare module "babylonjs-procedural-textures/marble/marbleProceduralTexture.fragment" {
|
|
257
|
+
/** @internal */
|
|
258
|
+
export const marbleProceduralTexturePixelShader: {
|
|
259
|
+
name: string;
|
|
260
|
+
shader: string;
|
|
261
|
+
};
|
|
220
262
|
|
|
221
263
|
}
|
|
222
264
|
declare module "babylonjs-procedural-textures/marble/marbleProceduralTexture" {
|
|
@@ -257,297 +299,255 @@ export class MarbleProceduralTexture extends ProceduralTexture {
|
|
|
257
299
|
}
|
|
258
300
|
|
|
259
301
|
}
|
|
260
|
-
declare module "babylonjs-procedural-textures/marble/
|
|
261
|
-
|
|
262
|
-
export const marbleProceduralTexturePixelShader: {
|
|
263
|
-
name: string;
|
|
264
|
-
shader: string;
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
declare module "babylonjs-procedural-textures/normalMap/index" {
|
|
269
|
-
export * from "babylonjs-procedural-textures/normalMap/normalMapProceduralTexture";
|
|
302
|
+
declare module "babylonjs-procedural-textures/marble/index" {
|
|
303
|
+
export * from "babylonjs-procedural-textures/marble/marbleProceduralTexture";
|
|
270
304
|
|
|
271
305
|
}
|
|
272
|
-
declare module "babylonjs-procedural-textures/
|
|
273
|
-
|
|
274
|
-
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
275
|
-
import { Scene } from "babylonjs/scene";
|
|
276
|
-
import { Nullable } from "babylonjs/types";
|
|
277
|
-
import "babylonjs-procedural-textures/normalMap/normalMapProceduralTexture.fragment";
|
|
278
|
-
export class NormalMapProceduralTexture extends ProceduralTexture {
|
|
279
|
-
private _baseTexture;
|
|
280
|
-
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
281
|
-
updateShaderUniforms(): void;
|
|
282
|
-
render(useCameraPostProcess?: boolean): void;
|
|
283
|
-
resize(size: any, generateMipMaps: any): void;
|
|
284
|
-
isReady(): boolean;
|
|
285
|
-
get baseTexture(): Texture;
|
|
286
|
-
set baseTexture(texture: Texture);
|
|
287
|
-
/**
|
|
288
|
-
* Serializes this normal map procedural texture
|
|
289
|
-
* @returns a serialized normal map procedural texture object
|
|
290
|
-
*/
|
|
291
|
-
serialize(): any;
|
|
292
|
-
/**
|
|
293
|
-
* Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
|
|
294
|
-
* @param parsedTexture defines parsed texture data
|
|
295
|
-
* @param scene defines the current scene
|
|
296
|
-
* @param rootUrl defines the root URL containing normal map procedural texture information
|
|
297
|
-
* @returns a parsed Normal Map Procedural Texture
|
|
298
|
-
*/
|
|
299
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): NormalMapProceduralTexture;
|
|
300
|
-
}
|
|
306
|
+
declare module "babylonjs-procedural-textures/grass/index" {
|
|
307
|
+
export * from "babylonjs-procedural-textures/grass/grassProceduralTexture";
|
|
301
308
|
|
|
302
309
|
}
|
|
303
|
-
declare module "babylonjs-procedural-textures/
|
|
310
|
+
declare module "babylonjs-procedural-textures/grass/grassProceduralTexture.fragment" {
|
|
304
311
|
/** @internal */
|
|
305
|
-
export const
|
|
312
|
+
export const grassProceduralTexturePixelShader: {
|
|
306
313
|
name: string;
|
|
307
314
|
shader: string;
|
|
308
315
|
};
|
|
309
316
|
|
|
310
317
|
}
|
|
311
|
-
declare module "babylonjs-procedural-textures/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
declare module "babylonjs-procedural-textures/perlinNoise/perlinNoiseProceduralTexture" {
|
|
318
|
+
declare module "babylonjs-procedural-textures/grass/grassProceduralTexture" {
|
|
319
|
+
import { Color3 } from "babylonjs/Maths/math.color";
|
|
316
320
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
317
321
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
318
322
|
import { Scene } from "babylonjs/scene";
|
|
319
323
|
import { Nullable } from "babylonjs/types";
|
|
320
|
-
import "babylonjs-procedural-textures/
|
|
321
|
-
export class
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
translationSpeed: number;
|
|
325
|
-
private _currentTranslation;
|
|
324
|
+
import "babylonjs-procedural-textures/grass/grassProceduralTexture.fragment";
|
|
325
|
+
export class GrassProceduralTexture extends ProceduralTexture {
|
|
326
|
+
private _grassColors;
|
|
327
|
+
private _groundColor;
|
|
326
328
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
327
329
|
updateShaderUniforms(): void;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
+
get grassColors(): Color3[];
|
|
331
|
+
set grassColors(value: Color3[]);
|
|
332
|
+
get groundColor(): Color3;
|
|
333
|
+
set groundColor(value: Color3);
|
|
330
334
|
/**
|
|
331
|
-
* Serializes this
|
|
332
|
-
* @returns a serialized
|
|
335
|
+
* Serializes this grass procedural texture
|
|
336
|
+
* @returns a serialized grass procedural texture object
|
|
333
337
|
*/
|
|
334
338
|
serialize(): any;
|
|
335
339
|
/**
|
|
336
|
-
* Creates a
|
|
340
|
+
* Creates a Grass Procedural Texture from parsed grass procedural texture data
|
|
337
341
|
* @param parsedTexture defines parsed texture data
|
|
338
342
|
* @param scene defines the current scene
|
|
339
|
-
* @param rootUrl defines the root URL containing
|
|
340
|
-
* @returns a parsed
|
|
343
|
+
* @param rootUrl defines the root URL containing grass procedural texture information
|
|
344
|
+
* @returns a parsed Grass Procedural Texture
|
|
341
345
|
*/
|
|
342
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
346
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): GrassProceduralTexture;
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
}
|
|
346
|
-
declare module "babylonjs-procedural-textures/
|
|
350
|
+
declare module "babylonjs-procedural-textures/fire/index" {
|
|
351
|
+
export * from "babylonjs-procedural-textures/fire/fireProceduralTexture";
|
|
352
|
+
|
|
353
|
+
}
|
|
354
|
+
declare module "babylonjs-procedural-textures/fire/fireProceduralTexture.fragment" {
|
|
347
355
|
/** @internal */
|
|
348
|
-
export const
|
|
356
|
+
export const fireProceduralTexturePixelShader: {
|
|
349
357
|
name: string;
|
|
350
358
|
shader: string;
|
|
351
359
|
};
|
|
352
360
|
|
|
353
361
|
}
|
|
354
|
-
declare module "babylonjs-procedural-textures/
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
declare module "babylonjs-procedural-textures/road/roadProceduralTexture" {
|
|
362
|
+
declare module "babylonjs-procedural-textures/fire/fireProceduralTexture" {
|
|
363
|
+
import { Vector2 } from "babylonjs/Maths/math.vector";
|
|
359
364
|
import { Color3 } from "babylonjs/Maths/math.color";
|
|
360
365
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
361
366
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
362
367
|
import { Scene } from "babylonjs/scene";
|
|
363
368
|
import { Nullable } from "babylonjs/types";
|
|
364
|
-
import "babylonjs-procedural-textures/
|
|
365
|
-
export class
|
|
366
|
-
private
|
|
369
|
+
import "babylonjs-procedural-textures/fire/fireProceduralTexture.fragment";
|
|
370
|
+
export class FireProceduralTexture extends ProceduralTexture {
|
|
371
|
+
private _time;
|
|
372
|
+
private _speed;
|
|
373
|
+
private _autoGenerateTime;
|
|
374
|
+
private _fireColors;
|
|
375
|
+
private _alphaThreshold;
|
|
367
376
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
368
377
|
updateShaderUniforms(): void;
|
|
369
|
-
|
|
370
|
-
|
|
378
|
+
render(useCameraPostProcess?: boolean): void;
|
|
379
|
+
static get PurpleFireColors(): Color3[];
|
|
380
|
+
static get GreenFireColors(): Color3[];
|
|
381
|
+
static get RedFireColors(): Color3[];
|
|
382
|
+
static get BlueFireColors(): Color3[];
|
|
383
|
+
get autoGenerateTime(): boolean;
|
|
384
|
+
set autoGenerateTime(value: boolean);
|
|
385
|
+
get fireColors(): Color3[];
|
|
386
|
+
set fireColors(value: Color3[]);
|
|
387
|
+
get time(): number;
|
|
388
|
+
set time(value: number);
|
|
389
|
+
get speed(): Vector2;
|
|
390
|
+
set speed(value: Vector2);
|
|
391
|
+
get alphaThreshold(): number;
|
|
392
|
+
set alphaThreshold(value: number);
|
|
371
393
|
/**
|
|
372
|
-
* Serializes this
|
|
373
|
-
* @returns a serialized
|
|
394
|
+
* Serializes this fire procedural texture
|
|
395
|
+
* @returns a serialized fire procedural texture object
|
|
374
396
|
*/
|
|
375
397
|
serialize(): any;
|
|
376
398
|
/**
|
|
377
|
-
* Creates a
|
|
399
|
+
* Creates a Fire Procedural Texture from parsed fire procedural texture data
|
|
378
400
|
* @param parsedTexture defines parsed texture data
|
|
379
401
|
* @param scene defines the current scene
|
|
380
|
-
* @param rootUrl defines the root URL containing
|
|
381
|
-
* @returns a parsed
|
|
402
|
+
* @param rootUrl defines the root URL containing fire procedural texture information
|
|
403
|
+
* @returns a parsed Fire Procedural Texture
|
|
382
404
|
*/
|
|
383
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
405
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): FireProceduralTexture;
|
|
384
406
|
}
|
|
385
407
|
|
|
386
408
|
}
|
|
387
|
-
declare module "babylonjs-procedural-textures/
|
|
409
|
+
declare module "babylonjs-procedural-textures/cloud/index" {
|
|
410
|
+
export * from "babylonjs-procedural-textures/cloud/cloudProceduralTexture";
|
|
411
|
+
|
|
412
|
+
}
|
|
413
|
+
declare module "babylonjs-procedural-textures/cloud/cloudProceduralTexture.fragment" {
|
|
388
414
|
/** @internal */
|
|
389
|
-
export const
|
|
415
|
+
export const cloudProceduralTexturePixelShader: {
|
|
390
416
|
name: string;
|
|
391
417
|
shader: string;
|
|
392
418
|
};
|
|
393
419
|
|
|
394
420
|
}
|
|
395
|
-
declare module "babylonjs-procedural-textures/
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
declare module "babylonjs-procedural-textures/starfield/starfieldProceduralTexture" {
|
|
421
|
+
declare module "babylonjs-procedural-textures/cloud/cloudProceduralTexture" {
|
|
422
|
+
import { Color4 } from "babylonjs/Maths/math.color";
|
|
400
423
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
401
424
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
402
425
|
import { Scene } from "babylonjs/scene";
|
|
403
426
|
import { Nullable } from "babylonjs/types";
|
|
404
|
-
import "babylonjs-procedural-textures/
|
|
405
|
-
export class
|
|
406
|
-
private
|
|
407
|
-
private
|
|
408
|
-
private
|
|
409
|
-
private
|
|
410
|
-
private _formuparam;
|
|
411
|
-
private _stepsize;
|
|
412
|
-
private _tile;
|
|
413
|
-
private _brightness;
|
|
414
|
-
private _darkmatter;
|
|
415
|
-
private _distfading;
|
|
416
|
-
private _saturation;
|
|
427
|
+
import "babylonjs-procedural-textures/cloud/cloudProceduralTexture.fragment";
|
|
428
|
+
export class CloudProceduralTexture extends ProceduralTexture {
|
|
429
|
+
private _skyColor;
|
|
430
|
+
private _cloudColor;
|
|
431
|
+
private _amplitude;
|
|
432
|
+
private _numOctaves;
|
|
417
433
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
418
434
|
updateShaderUniforms(): void;
|
|
419
|
-
get
|
|
420
|
-
set
|
|
421
|
-
get
|
|
422
|
-
set
|
|
423
|
-
get
|
|
424
|
-
set
|
|
425
|
-
get
|
|
426
|
-
set
|
|
427
|
-
get stepsize(): number;
|
|
428
|
-
set stepsize(value: number);
|
|
429
|
-
get zoom(): number;
|
|
430
|
-
set zoom(value: number);
|
|
431
|
-
get tile(): number;
|
|
432
|
-
set tile(value: number);
|
|
433
|
-
get brightness(): number;
|
|
434
|
-
set brightness(value: number);
|
|
435
|
-
get darkmatter(): number;
|
|
436
|
-
set darkmatter(value: number);
|
|
437
|
-
get distfading(): number;
|
|
438
|
-
set distfading(value: number);
|
|
439
|
-
get saturation(): number;
|
|
440
|
-
set saturation(value: number);
|
|
435
|
+
get skyColor(): Color4;
|
|
436
|
+
set skyColor(value: Color4);
|
|
437
|
+
get cloudColor(): Color4;
|
|
438
|
+
set cloudColor(value: Color4);
|
|
439
|
+
get amplitude(): number;
|
|
440
|
+
set amplitude(value: number);
|
|
441
|
+
get numOctaves(): number;
|
|
442
|
+
set numOctaves(value: number);
|
|
441
443
|
/**
|
|
442
|
-
* Serializes this
|
|
443
|
-
* @returns a serialized
|
|
444
|
+
* Serializes this cloud procedural texture
|
|
445
|
+
* @returns a serialized cloud procedural texture object
|
|
444
446
|
*/
|
|
445
447
|
serialize(): any;
|
|
446
448
|
/**
|
|
447
|
-
* Creates a
|
|
449
|
+
* Creates a Cloud Procedural Texture from parsed cloud procedural texture data
|
|
448
450
|
* @param parsedTexture defines parsed texture data
|
|
449
451
|
* @param scene defines the current scene
|
|
450
|
-
* @param rootUrl defines the root URL containing
|
|
451
|
-
* @returns a parsed
|
|
452
|
+
* @param rootUrl defines the root URL containing cloud procedural texture information
|
|
453
|
+
* @returns a parsed Cloud Procedural Texture
|
|
452
454
|
*/
|
|
453
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
455
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): CloudProceduralTexture;
|
|
454
456
|
}
|
|
455
457
|
|
|
456
458
|
}
|
|
457
|
-
declare module "babylonjs-procedural-textures/
|
|
459
|
+
declare module "babylonjs-procedural-textures/brick/index" {
|
|
460
|
+
export * from "babylonjs-procedural-textures/brick/brickProceduralTexture";
|
|
461
|
+
|
|
462
|
+
}
|
|
463
|
+
declare module "babylonjs-procedural-textures/brick/brickProceduralTexture.fragment" {
|
|
458
464
|
/** @internal */
|
|
459
|
-
export const
|
|
465
|
+
export const brickProceduralTexturePixelShader: {
|
|
460
466
|
name: string;
|
|
461
467
|
shader: string;
|
|
462
468
|
};
|
|
463
469
|
|
|
464
470
|
}
|
|
465
|
-
declare module "babylonjs-procedural-textures/
|
|
466
|
-
export * from "babylonjs-procedural-textures/wood/woodProceduralTexture";
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
declare module "babylonjs-procedural-textures/wood/woodProceduralTexture" {
|
|
471
|
+
declare module "babylonjs-procedural-textures/brick/brickProceduralTexture" {
|
|
470
472
|
import { Color3 } from "babylonjs/Maths/math.color";
|
|
471
473
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
472
474
|
import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
473
|
-
import { Scene } from "babylonjs/scene";
|
|
474
|
-
import { Nullable } from "babylonjs/types";
|
|
475
|
-
import "babylonjs-procedural-textures/
|
|
476
|
-
export class
|
|
477
|
-
private
|
|
478
|
-
private
|
|
475
|
+
import { Scene } from "babylonjs/scene";
|
|
476
|
+
import { Nullable } from "babylonjs/types";
|
|
477
|
+
import "babylonjs-procedural-textures/brick/brickProceduralTexture.fragment";
|
|
478
|
+
export class BrickProceduralTexture extends ProceduralTexture {
|
|
479
|
+
private _numberOfBricksHeight;
|
|
480
|
+
private _numberOfBricksWidth;
|
|
481
|
+
private _jointColor;
|
|
482
|
+
private _brickColor;
|
|
479
483
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
480
484
|
updateShaderUniforms(): void;
|
|
481
|
-
get
|
|
482
|
-
set
|
|
483
|
-
get
|
|
484
|
-
set
|
|
485
|
+
get numberOfBricksHeight(): number;
|
|
486
|
+
set numberOfBricksHeight(value: number);
|
|
487
|
+
get numberOfBricksWidth(): number;
|
|
488
|
+
set numberOfBricksWidth(value: number);
|
|
489
|
+
get jointColor(): Color3;
|
|
490
|
+
set jointColor(value: Color3);
|
|
491
|
+
get brickColor(): Color3;
|
|
492
|
+
set brickColor(value: Color3);
|
|
485
493
|
/**
|
|
486
|
-
* Serializes this
|
|
487
|
-
* @returns a serialized
|
|
494
|
+
* Serializes this brick procedural texture
|
|
495
|
+
* @returns a serialized brick procedural texture object
|
|
488
496
|
*/
|
|
489
497
|
serialize(): any;
|
|
490
498
|
/**
|
|
491
|
-
* Creates a
|
|
499
|
+
* Creates a Brick Procedural Texture from parsed brick procedural texture data
|
|
492
500
|
* @param parsedTexture defines parsed texture data
|
|
493
501
|
* @param scene defines the current scene
|
|
494
|
-
* @param rootUrl defines the root URL containing
|
|
495
|
-
* @returns a parsed
|
|
502
|
+
* @param rootUrl defines the root URL containing brick procedural texture information
|
|
503
|
+
* @returns a parsed Brick Procedural Texture
|
|
496
504
|
*/
|
|
497
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
498
|
-
}
|
|
499
|
-
|
|
505
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): BrickProceduralTexture;
|
|
500
506
|
}
|
|
501
|
-
declare module "babylonjs-procedural-textures/wood/woodProceduralTexture.fragment" {
|
|
502
|
-
/** @internal */
|
|
503
|
-
export const woodProceduralTexturePixelShader: {
|
|
504
|
-
name: string;
|
|
505
|
-
shader: string;
|
|
506
|
-
};
|
|
507
507
|
|
|
508
508
|
}
|
|
509
|
-
declare module "babylonjs-procedural-textures/legacy/legacy
|
|
510
|
-
export * from "babylonjs-procedural-textures/
|
|
509
|
+
declare module "babylonjs-procedural-textures/legacy/legacy" {
|
|
510
|
+
export * from "babylonjs-procedural-textures/index";
|
|
511
511
|
|
|
512
512
|
}
|
|
513
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
514
|
-
export * from "babylonjs-procedural-textures/
|
|
513
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-wood" {
|
|
514
|
+
export * from "babylonjs-procedural-textures/wood/index";
|
|
515
515
|
|
|
516
516
|
}
|
|
517
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
518
|
-
export * from "babylonjs-procedural-textures/
|
|
517
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-starfield" {
|
|
518
|
+
export * from "babylonjs-procedural-textures/starfield/index";
|
|
519
519
|
|
|
520
520
|
}
|
|
521
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
522
|
-
export * from "babylonjs-procedural-textures/
|
|
521
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-road" {
|
|
522
|
+
export * from "babylonjs-procedural-textures/road/index";
|
|
523
523
|
|
|
524
524
|
}
|
|
525
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
526
|
-
export * from "babylonjs-procedural-textures/
|
|
525
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-perlinNoise" {
|
|
526
|
+
export * from "babylonjs-procedural-textures/perlinNoise/index";
|
|
527
527
|
|
|
528
528
|
}
|
|
529
529
|
declare module "babylonjs-procedural-textures/legacy/legacy-normalMap" {
|
|
530
530
|
export * from "babylonjs-procedural-textures/normalMap/index";
|
|
531
531
|
|
|
532
532
|
}
|
|
533
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
534
|
-
export * from "babylonjs-procedural-textures/
|
|
533
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-marble" {
|
|
534
|
+
export * from "babylonjs-procedural-textures/marble/index";
|
|
535
535
|
|
|
536
536
|
}
|
|
537
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
538
|
-
export * from "babylonjs-procedural-textures/
|
|
537
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-grass" {
|
|
538
|
+
export * from "babylonjs-procedural-textures/grass/index";
|
|
539
539
|
|
|
540
540
|
}
|
|
541
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
542
|
-
export * from "babylonjs-procedural-textures/
|
|
541
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-fire" {
|
|
542
|
+
export * from "babylonjs-procedural-textures/fire/index";
|
|
543
543
|
|
|
544
544
|
}
|
|
545
|
-
declare module "babylonjs-procedural-textures/legacy/legacy-
|
|
546
|
-
export * from "babylonjs-procedural-textures/
|
|
545
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-cloud" {
|
|
546
|
+
export * from "babylonjs-procedural-textures/cloud/index";
|
|
547
547
|
|
|
548
548
|
}
|
|
549
|
-
declare module "babylonjs-procedural-textures/legacy/legacy" {
|
|
550
|
-
export * from "babylonjs-procedural-textures/index";
|
|
549
|
+
declare module "babylonjs-procedural-textures/legacy/legacy-brick" {
|
|
550
|
+
export * from "babylonjs-procedural-textures/brick/index";
|
|
551
551
|
|
|
552
552
|
}
|
|
553
553
|
|
|
@@ -557,172 +557,209 @@ declare module "babylonjs-procedural-textures" {
|
|
|
557
557
|
|
|
558
558
|
|
|
559
559
|
declare module BABYLON {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
/** @internal */
|
|
563
|
+
export var woodProceduralTexturePixelShader: {
|
|
564
|
+
name: string;
|
|
565
|
+
shader: string;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
export class WoodProceduralTexture extends ProceduralTexture {
|
|
570
|
+
private _ampScale;
|
|
571
|
+
private _woodColor;
|
|
565
572
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
566
573
|
updateShaderUniforms(): void;
|
|
567
|
-
get
|
|
568
|
-
set
|
|
569
|
-
get
|
|
570
|
-
set
|
|
571
|
-
get jointColor(): Color3;
|
|
572
|
-
set jointColor(value: Color3);
|
|
573
|
-
get brickColor(): Color3;
|
|
574
|
-
set brickColor(value: Color3);
|
|
574
|
+
get ampScale(): number;
|
|
575
|
+
set ampScale(value: number);
|
|
576
|
+
get woodColor(): Color3;
|
|
577
|
+
set woodColor(value: Color3);
|
|
575
578
|
/**
|
|
576
|
-
* Serializes this
|
|
577
|
-
* @returns a serialized
|
|
579
|
+
* Serializes this wood procedural texture
|
|
580
|
+
* @returns a serialized wood procedural texture object
|
|
578
581
|
*/
|
|
579
582
|
serialize(): any;
|
|
580
583
|
/**
|
|
581
|
-
* Creates a
|
|
584
|
+
* Creates a Wood Procedural Texture from parsed wood procedural texture data
|
|
582
585
|
* @param parsedTexture defines parsed texture data
|
|
583
586
|
* @param scene defines the current scene
|
|
584
|
-
* @param rootUrl defines the root URL containing
|
|
585
|
-
* @returns a parsed
|
|
587
|
+
* @param rootUrl defines the root URL containing wood procedural texture information
|
|
588
|
+
* @returns a parsed Wood Procedural Texture
|
|
586
589
|
*/
|
|
587
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
590
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): WoodProceduralTexture;
|
|
588
591
|
}
|
|
589
592
|
|
|
590
593
|
|
|
594
|
+
|
|
595
|
+
|
|
591
596
|
/** @internal */
|
|
592
|
-
export var
|
|
597
|
+
export var starfieldProceduralTexturePixelShader: {
|
|
593
598
|
name: string;
|
|
594
599
|
shader: string;
|
|
595
600
|
};
|
|
596
601
|
|
|
597
602
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
private
|
|
602
|
-
private
|
|
603
|
-
private
|
|
604
|
-
private
|
|
603
|
+
export class StarfieldProceduralTexture extends ProceduralTexture {
|
|
604
|
+
private _time;
|
|
605
|
+
private _alpha;
|
|
606
|
+
private _beta;
|
|
607
|
+
private _zoom;
|
|
608
|
+
private _formuparam;
|
|
609
|
+
private _stepsize;
|
|
610
|
+
private _tile;
|
|
611
|
+
private _brightness;
|
|
612
|
+
private _darkmatter;
|
|
613
|
+
private _distfading;
|
|
614
|
+
private _saturation;
|
|
605
615
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
606
616
|
updateShaderUniforms(): void;
|
|
607
|
-
get
|
|
608
|
-
set
|
|
609
|
-
get
|
|
610
|
-
set
|
|
611
|
-
get
|
|
612
|
-
set
|
|
613
|
-
get
|
|
614
|
-
set
|
|
617
|
+
get time(): number;
|
|
618
|
+
set time(value: number);
|
|
619
|
+
get alpha(): number;
|
|
620
|
+
set alpha(value: number);
|
|
621
|
+
get beta(): number;
|
|
622
|
+
set beta(value: number);
|
|
623
|
+
get formuparam(): number;
|
|
624
|
+
set formuparam(value: number);
|
|
625
|
+
get stepsize(): number;
|
|
626
|
+
set stepsize(value: number);
|
|
627
|
+
get zoom(): number;
|
|
628
|
+
set zoom(value: number);
|
|
629
|
+
get tile(): number;
|
|
630
|
+
set tile(value: number);
|
|
631
|
+
get brightness(): number;
|
|
632
|
+
set brightness(value: number);
|
|
633
|
+
get darkmatter(): number;
|
|
634
|
+
set darkmatter(value: number);
|
|
635
|
+
get distfading(): number;
|
|
636
|
+
set distfading(value: number);
|
|
637
|
+
get saturation(): number;
|
|
638
|
+
set saturation(value: number);
|
|
615
639
|
/**
|
|
616
|
-
* Serializes this
|
|
617
|
-
* @returns a serialized
|
|
640
|
+
* Serializes this starfield procedural texture
|
|
641
|
+
* @returns a serialized starfield procedural texture object
|
|
618
642
|
*/
|
|
619
643
|
serialize(): any;
|
|
620
644
|
/**
|
|
621
|
-
* Creates a
|
|
645
|
+
* Creates a Starfield Procedural Texture from parsed startfield procedural texture data
|
|
622
646
|
* @param parsedTexture defines parsed texture data
|
|
623
647
|
* @param scene defines the current scene
|
|
624
|
-
* @param rootUrl defines the root URL containing
|
|
625
|
-
* @returns a parsed
|
|
648
|
+
* @param rootUrl defines the root URL containing startfield procedural texture information
|
|
649
|
+
* @returns a parsed Starfield Procedural Texture
|
|
626
650
|
*/
|
|
627
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
651
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): StarfieldProceduralTexture;
|
|
628
652
|
}
|
|
629
653
|
|
|
630
654
|
|
|
655
|
+
|
|
656
|
+
|
|
631
657
|
/** @internal */
|
|
632
|
-
export var
|
|
658
|
+
export var roadProceduralTexturePixelShader: {
|
|
633
659
|
name: string;
|
|
634
660
|
shader: string;
|
|
635
661
|
};
|
|
636
662
|
|
|
637
663
|
|
|
664
|
+
export class RoadProceduralTexture extends ProceduralTexture {
|
|
665
|
+
private _roadColor;
|
|
666
|
+
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
667
|
+
updateShaderUniforms(): void;
|
|
668
|
+
get roadColor(): Color3;
|
|
669
|
+
set roadColor(value: Color3);
|
|
670
|
+
/**
|
|
671
|
+
* Serializes this road procedural texture
|
|
672
|
+
* @returns a serialized road procedural texture object
|
|
673
|
+
*/
|
|
674
|
+
serialize(): any;
|
|
675
|
+
/**
|
|
676
|
+
* Creates a Road Procedural Texture from parsed road procedural texture data
|
|
677
|
+
* @param parsedTexture defines parsed texture data
|
|
678
|
+
* @param scene defines the current scene
|
|
679
|
+
* @param rootUrl defines the root URL containing road procedural texture information
|
|
680
|
+
* @returns a parsed Road Procedural Texture
|
|
681
|
+
*/
|
|
682
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): RoadProceduralTexture;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
|
|
638
686
|
|
|
639
687
|
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
688
|
+
/** @internal */
|
|
689
|
+
export var perlinNoiseProceduralTexturePixelShader: {
|
|
690
|
+
name: string;
|
|
691
|
+
shader: string;
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
export class PerlinNoiseProceduralTexture extends ProceduralTexture {
|
|
696
|
+
time: number;
|
|
697
|
+
timeScale: number;
|
|
698
|
+
translationSpeed: number;
|
|
699
|
+
private _currentTranslation;
|
|
646
700
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
647
701
|
updateShaderUniforms(): void;
|
|
648
702
|
render(useCameraPostProcess?: boolean): void;
|
|
649
|
-
|
|
650
|
-
static get GreenFireColors(): Color3[];
|
|
651
|
-
static get RedFireColors(): Color3[];
|
|
652
|
-
static get BlueFireColors(): Color3[];
|
|
653
|
-
get autoGenerateTime(): boolean;
|
|
654
|
-
set autoGenerateTime(value: boolean);
|
|
655
|
-
get fireColors(): Color3[];
|
|
656
|
-
set fireColors(value: Color3[]);
|
|
657
|
-
get time(): number;
|
|
658
|
-
set time(value: number);
|
|
659
|
-
get speed(): Vector2;
|
|
660
|
-
set speed(value: Vector2);
|
|
661
|
-
get alphaThreshold(): number;
|
|
662
|
-
set alphaThreshold(value: number);
|
|
703
|
+
resize(size: any, generateMipMaps: any): void;
|
|
663
704
|
/**
|
|
664
|
-
* Serializes this
|
|
665
|
-
* @returns a serialized
|
|
705
|
+
* Serializes this perlin noise procedural texture
|
|
706
|
+
* @returns a serialized perlin noise procedural texture object
|
|
666
707
|
*/
|
|
667
708
|
serialize(): any;
|
|
668
709
|
/**
|
|
669
|
-
* Creates a
|
|
710
|
+
* Creates a Perlin Noise Procedural Texture from parsed perlin noise procedural texture data
|
|
670
711
|
* @param parsedTexture defines parsed texture data
|
|
671
712
|
* @param scene defines the current scene
|
|
672
|
-
* @param rootUrl defines the root URL containing
|
|
673
|
-
* @returns a parsed
|
|
713
|
+
* @param rootUrl defines the root URL containing perlin noise procedural texture information
|
|
714
|
+
* @returns a parsed Perlin Noise Procedural Texture
|
|
674
715
|
*/
|
|
675
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
716
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): PerlinNoiseProceduralTexture;
|
|
676
717
|
}
|
|
677
718
|
|
|
678
719
|
|
|
720
|
+
|
|
721
|
+
|
|
679
722
|
/** @internal */
|
|
680
|
-
export var
|
|
723
|
+
export var normalMapProceduralTexturePixelShader: {
|
|
681
724
|
name: string;
|
|
682
725
|
shader: string;
|
|
683
726
|
};
|
|
684
727
|
|
|
685
728
|
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
export class GrassProceduralTexture extends ProceduralTexture {
|
|
689
|
-
private _grassColors;
|
|
690
|
-
private _groundColor;
|
|
729
|
+
export class NormalMapProceduralTexture extends ProceduralTexture {
|
|
730
|
+
private _baseTexture;
|
|
691
731
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
692
732
|
updateShaderUniforms(): void;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
733
|
+
render(useCameraPostProcess?: boolean): void;
|
|
734
|
+
resize(size: any, generateMipMaps: any): void;
|
|
735
|
+
isReady(): boolean;
|
|
736
|
+
get baseTexture(): Texture;
|
|
737
|
+
set baseTexture(texture: Texture);
|
|
697
738
|
/**
|
|
698
|
-
* Serializes this
|
|
699
|
-
* @returns a serialized
|
|
739
|
+
* Serializes this normal map procedural texture
|
|
740
|
+
* @returns a serialized normal map procedural texture object
|
|
700
741
|
*/
|
|
701
742
|
serialize(): any;
|
|
702
743
|
/**
|
|
703
|
-
* Creates a
|
|
744
|
+
* Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
|
|
704
745
|
* @param parsedTexture defines parsed texture data
|
|
705
746
|
* @param scene defines the current scene
|
|
706
|
-
* @param rootUrl defines the root URL containing
|
|
707
|
-
* @returns a parsed
|
|
747
|
+
* @param rootUrl defines the root URL containing normal map procedural texture information
|
|
748
|
+
* @returns a parsed Normal Map Procedural Texture
|
|
708
749
|
*/
|
|
709
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
750
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): NormalMapProceduralTexture;
|
|
710
751
|
}
|
|
711
752
|
|
|
712
753
|
|
|
754
|
+
|
|
755
|
+
|
|
713
756
|
/** @internal */
|
|
714
|
-
export var
|
|
757
|
+
export var marbleProceduralTexturePixelShader: {
|
|
715
758
|
name: string;
|
|
716
759
|
shader: string;
|
|
717
760
|
};
|
|
718
761
|
|
|
719
762
|
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
763
|
export class MarbleProceduralTexture extends ProceduralTexture {
|
|
727
764
|
private _numberOfTilesHeight;
|
|
728
765
|
private _numberOfTilesWidth;
|
|
@@ -754,207 +791,170 @@ declare module BABYLON {
|
|
|
754
791
|
}
|
|
755
792
|
|
|
756
793
|
|
|
757
|
-
/** @internal */
|
|
758
|
-
export var marbleProceduralTexturePixelShader: {
|
|
759
|
-
name: string;
|
|
760
|
-
shader: string;
|
|
761
|
-
};
|
|
762
|
-
|
|
763
|
-
|
|
764
794
|
|
|
765
795
|
|
|
766
|
-
export class NormalMapProceduralTexture extends ProceduralTexture {
|
|
767
|
-
private _baseTexture;
|
|
768
|
-
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
769
|
-
updateShaderUniforms(): void;
|
|
770
|
-
render(useCameraPostProcess?: boolean): void;
|
|
771
|
-
resize(size: any, generateMipMaps: any): void;
|
|
772
|
-
isReady(): boolean;
|
|
773
|
-
get baseTexture(): Texture;
|
|
774
|
-
set baseTexture(texture: Texture);
|
|
775
|
-
/**
|
|
776
|
-
* Serializes this normal map procedural texture
|
|
777
|
-
* @returns a serialized normal map procedural texture object
|
|
778
|
-
*/
|
|
779
|
-
serialize(): any;
|
|
780
|
-
/**
|
|
781
|
-
* Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
|
|
782
|
-
* @param parsedTexture defines parsed texture data
|
|
783
|
-
* @param scene defines the current scene
|
|
784
|
-
* @param rootUrl defines the root URL containing normal map procedural texture information
|
|
785
|
-
* @returns a parsed Normal Map Procedural Texture
|
|
786
|
-
*/
|
|
787
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): NormalMapProceduralTexture;
|
|
788
|
-
}
|
|
789
796
|
|
|
790
797
|
|
|
791
798
|
/** @internal */
|
|
792
|
-
export var
|
|
799
|
+
export var grassProceduralTexturePixelShader: {
|
|
793
800
|
name: string;
|
|
794
801
|
shader: string;
|
|
795
802
|
};
|
|
796
803
|
|
|
797
804
|
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
time: number;
|
|
802
|
-
timeScale: number;
|
|
803
|
-
translationSpeed: number;
|
|
804
|
-
private _currentTranslation;
|
|
805
|
+
export class GrassProceduralTexture extends ProceduralTexture {
|
|
806
|
+
private _grassColors;
|
|
807
|
+
private _groundColor;
|
|
805
808
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
806
809
|
updateShaderUniforms(): void;
|
|
807
|
-
|
|
808
|
-
|
|
810
|
+
get grassColors(): Color3[];
|
|
811
|
+
set grassColors(value: Color3[]);
|
|
812
|
+
get groundColor(): Color3;
|
|
813
|
+
set groundColor(value: Color3);
|
|
809
814
|
/**
|
|
810
|
-
* Serializes this
|
|
811
|
-
* @returns a serialized
|
|
815
|
+
* Serializes this grass procedural texture
|
|
816
|
+
* @returns a serialized grass procedural texture object
|
|
812
817
|
*/
|
|
813
818
|
serialize(): any;
|
|
814
819
|
/**
|
|
815
|
-
* Creates a
|
|
820
|
+
* Creates a Grass Procedural Texture from parsed grass procedural texture data
|
|
816
821
|
* @param parsedTexture defines parsed texture data
|
|
817
822
|
* @param scene defines the current scene
|
|
818
|
-
* @param rootUrl defines the root URL containing
|
|
819
|
-
* @returns a parsed
|
|
823
|
+
* @param rootUrl defines the root URL containing grass procedural texture information
|
|
824
|
+
* @returns a parsed Grass Procedural Texture
|
|
820
825
|
*/
|
|
821
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
826
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): GrassProceduralTexture;
|
|
822
827
|
}
|
|
823
828
|
|
|
824
829
|
|
|
830
|
+
|
|
831
|
+
|
|
825
832
|
/** @internal */
|
|
826
|
-
export var
|
|
833
|
+
export var fireProceduralTexturePixelShader: {
|
|
827
834
|
name: string;
|
|
828
835
|
shader: string;
|
|
829
836
|
};
|
|
830
837
|
|
|
831
838
|
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
private
|
|
839
|
+
export class FireProceduralTexture extends ProceduralTexture {
|
|
840
|
+
private _time;
|
|
841
|
+
private _speed;
|
|
842
|
+
private _autoGenerateTime;
|
|
843
|
+
private _fireColors;
|
|
844
|
+
private _alphaThreshold;
|
|
836
845
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
837
846
|
updateShaderUniforms(): void;
|
|
838
|
-
|
|
839
|
-
|
|
847
|
+
render(useCameraPostProcess?: boolean): void;
|
|
848
|
+
static get PurpleFireColors(): Color3[];
|
|
849
|
+
static get GreenFireColors(): Color3[];
|
|
850
|
+
static get RedFireColors(): Color3[];
|
|
851
|
+
static get BlueFireColors(): Color3[];
|
|
852
|
+
get autoGenerateTime(): boolean;
|
|
853
|
+
set autoGenerateTime(value: boolean);
|
|
854
|
+
get fireColors(): Color3[];
|
|
855
|
+
set fireColors(value: Color3[]);
|
|
856
|
+
get time(): number;
|
|
857
|
+
set time(value: number);
|
|
858
|
+
get speed(): Vector2;
|
|
859
|
+
set speed(value: Vector2);
|
|
860
|
+
get alphaThreshold(): number;
|
|
861
|
+
set alphaThreshold(value: number);
|
|
840
862
|
/**
|
|
841
|
-
* Serializes this
|
|
842
|
-
* @returns a serialized
|
|
863
|
+
* Serializes this fire procedural texture
|
|
864
|
+
* @returns a serialized fire procedural texture object
|
|
843
865
|
*/
|
|
844
866
|
serialize(): any;
|
|
845
867
|
/**
|
|
846
|
-
* Creates a
|
|
868
|
+
* Creates a Fire Procedural Texture from parsed fire procedural texture data
|
|
847
869
|
* @param parsedTexture defines parsed texture data
|
|
848
870
|
* @param scene defines the current scene
|
|
849
|
-
* @param rootUrl defines the root URL containing
|
|
850
|
-
* @returns a parsed
|
|
871
|
+
* @param rootUrl defines the root URL containing fire procedural texture information
|
|
872
|
+
* @returns a parsed Fire Procedural Texture
|
|
851
873
|
*/
|
|
852
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
874
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): FireProceduralTexture;
|
|
853
875
|
}
|
|
854
876
|
|
|
855
877
|
|
|
878
|
+
|
|
879
|
+
|
|
856
880
|
/** @internal */
|
|
857
|
-
export var
|
|
881
|
+
export var cloudProceduralTexturePixelShader: {
|
|
858
882
|
name: string;
|
|
859
883
|
shader: string;
|
|
860
884
|
};
|
|
861
885
|
|
|
862
886
|
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
private
|
|
867
|
-
private
|
|
868
|
-
private _beta;
|
|
869
|
-
private _zoom;
|
|
870
|
-
private _formuparam;
|
|
871
|
-
private _stepsize;
|
|
872
|
-
private _tile;
|
|
873
|
-
private _brightness;
|
|
874
|
-
private _darkmatter;
|
|
875
|
-
private _distfading;
|
|
876
|
-
private _saturation;
|
|
887
|
+
export class CloudProceduralTexture extends ProceduralTexture {
|
|
888
|
+
private _skyColor;
|
|
889
|
+
private _cloudColor;
|
|
890
|
+
private _amplitude;
|
|
891
|
+
private _numOctaves;
|
|
877
892
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
878
893
|
updateShaderUniforms(): void;
|
|
879
|
-
get
|
|
880
|
-
set
|
|
881
|
-
get
|
|
882
|
-
set
|
|
883
|
-
get
|
|
884
|
-
set
|
|
885
|
-
get
|
|
886
|
-
set
|
|
887
|
-
get stepsize(): number;
|
|
888
|
-
set stepsize(value: number);
|
|
889
|
-
get zoom(): number;
|
|
890
|
-
set zoom(value: number);
|
|
891
|
-
get tile(): number;
|
|
892
|
-
set tile(value: number);
|
|
893
|
-
get brightness(): number;
|
|
894
|
-
set brightness(value: number);
|
|
895
|
-
get darkmatter(): number;
|
|
896
|
-
set darkmatter(value: number);
|
|
897
|
-
get distfading(): number;
|
|
898
|
-
set distfading(value: number);
|
|
899
|
-
get saturation(): number;
|
|
900
|
-
set saturation(value: number);
|
|
894
|
+
get skyColor(): Color4;
|
|
895
|
+
set skyColor(value: Color4);
|
|
896
|
+
get cloudColor(): Color4;
|
|
897
|
+
set cloudColor(value: Color4);
|
|
898
|
+
get amplitude(): number;
|
|
899
|
+
set amplitude(value: number);
|
|
900
|
+
get numOctaves(): number;
|
|
901
|
+
set numOctaves(value: number);
|
|
901
902
|
/**
|
|
902
|
-
* Serializes this
|
|
903
|
-
* @returns a serialized
|
|
903
|
+
* Serializes this cloud procedural texture
|
|
904
|
+
* @returns a serialized cloud procedural texture object
|
|
904
905
|
*/
|
|
905
906
|
serialize(): any;
|
|
906
907
|
/**
|
|
907
|
-
* Creates a
|
|
908
|
+
* Creates a Cloud Procedural Texture from parsed cloud procedural texture data
|
|
908
909
|
* @param parsedTexture defines parsed texture data
|
|
909
910
|
* @param scene defines the current scene
|
|
910
|
-
* @param rootUrl defines the root URL containing
|
|
911
|
-
* @returns a parsed
|
|
911
|
+
* @param rootUrl defines the root URL containing cloud procedural texture information
|
|
912
|
+
* @returns a parsed Cloud Procedural Texture
|
|
912
913
|
*/
|
|
913
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
914
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): CloudProceduralTexture;
|
|
914
915
|
}
|
|
915
916
|
|
|
916
917
|
|
|
918
|
+
|
|
919
|
+
|
|
917
920
|
/** @internal */
|
|
918
|
-
export var
|
|
921
|
+
export var brickProceduralTexturePixelShader: {
|
|
919
922
|
name: string;
|
|
920
923
|
shader: string;
|
|
921
924
|
};
|
|
922
925
|
|
|
923
926
|
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
private
|
|
928
|
-
private
|
|
927
|
+
export class BrickProceduralTexture extends ProceduralTexture {
|
|
928
|
+
private _numberOfBricksHeight;
|
|
929
|
+
private _numberOfBricksWidth;
|
|
930
|
+
private _jointColor;
|
|
931
|
+
private _brickColor;
|
|
929
932
|
constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
|
|
930
933
|
updateShaderUniforms(): void;
|
|
931
|
-
get
|
|
932
|
-
set
|
|
933
|
-
get
|
|
934
|
-
set
|
|
934
|
+
get numberOfBricksHeight(): number;
|
|
935
|
+
set numberOfBricksHeight(value: number);
|
|
936
|
+
get numberOfBricksWidth(): number;
|
|
937
|
+
set numberOfBricksWidth(value: number);
|
|
938
|
+
get jointColor(): Color3;
|
|
939
|
+
set jointColor(value: Color3);
|
|
940
|
+
get brickColor(): Color3;
|
|
941
|
+
set brickColor(value: Color3);
|
|
935
942
|
/**
|
|
936
|
-
* Serializes this
|
|
937
|
-
* @returns a serialized
|
|
943
|
+
* Serializes this brick procedural texture
|
|
944
|
+
* @returns a serialized brick procedural texture object
|
|
938
945
|
*/
|
|
939
946
|
serialize(): any;
|
|
940
947
|
/**
|
|
941
|
-
* Creates a
|
|
948
|
+
* Creates a Brick Procedural Texture from parsed brick procedural texture data
|
|
942
949
|
* @param parsedTexture defines parsed texture data
|
|
943
950
|
* @param scene defines the current scene
|
|
944
|
-
* @param rootUrl defines the root URL containing
|
|
945
|
-
* @returns a parsed
|
|
951
|
+
* @param rootUrl defines the root URL containing brick procedural texture information
|
|
952
|
+
* @returns a parsed Brick Procedural Texture
|
|
946
953
|
*/
|
|
947
|
-
static Parse(parsedTexture: any, scene: Scene, rootUrl: string):
|
|
954
|
+
static Parse(parsedTexture: any, scene: Scene, rootUrl: string): BrickProceduralTexture;
|
|
948
955
|
}
|
|
949
956
|
|
|
950
957
|
|
|
951
|
-
/** @internal */
|
|
952
|
-
export var woodProceduralTexturePixelShader: {
|
|
953
|
-
name: string;
|
|
954
|
-
shader: string;
|
|
955
|
-
};
|
|
956
|
-
|
|
957
|
-
|
|
958
958
|
|
|
959
959
|
|
|
960
960
|
|