babylonjs.proceduralTextures.module.d.ts 35 KB

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