babylonjs.proceduralTextures.module.d.ts 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. /*BabylonJS Procedural Textures*/
  2. // Dependencies for this module:
  3. // ../../../../Tools/Gulp/babylonjs
  4. declare module 'babylonjs-procedural-textures' {
  5. export * from "babylonjs-procedural-textures/src/brick";
  6. export * from "babylonjs-procedural-textures/src/cloud";
  7. export * from "babylonjs-procedural-textures/src/fire";
  8. export * from "babylonjs-procedural-textures/src/grass";
  9. export * from "babylonjs-procedural-textures/src/marble";
  10. export * from "babylonjs-procedural-textures/src/normalMap";
  11. export * from "babylonjs-procedural-textures/src/perlinNoise";
  12. export * from "babylonjs-procedural-textures/src/road";
  13. export * from "babylonjs-procedural-textures/src/starfield";
  14. export * from "babylonjs-procedural-textures/src/wood";
  15. }
  16. declare module 'babylonjs-procedural-textures/src/brick' {
  17. export * from "babylonjs-procedural-textures/src/brick/brickProceduralTexture";
  18. }
  19. declare module 'babylonjs-procedural-textures/src/cloud' {
  20. export * from "babylonjs-procedural-textures/src/cloud/cloudProceduralTexture";
  21. }
  22. declare module 'babylonjs-procedural-textures/src/fire' {
  23. export * from "babylonjs-procedural-textures/src/fire/fireProceduralTexture";
  24. }
  25. declare module 'babylonjs-procedural-textures/src/grass' {
  26. export * from "babylonjs-procedural-textures/src/grass/grassProceduralTexture";
  27. }
  28. declare module 'babylonjs-procedural-textures/src/marble' {
  29. export * from "babylonjs-procedural-textures/src/marble/marbleProceduralTexture";
  30. }
  31. declare module 'babylonjs-procedural-textures/src/normalMap' {
  32. export * from "babylonjs-procedural-textures/src/normalMap/normalMapProceduralTexture";
  33. }
  34. declare module 'babylonjs-procedural-textures/src/perlinNoise' {
  35. export * from "babylonjs-procedural-textures/src/perlinNoise/perlinNoiseProceduralTexture";
  36. }
  37. declare module 'babylonjs-procedural-textures/src/road' {
  38. export * from "babylonjs-procedural-textures/src/road/roadProceduralTexture";
  39. }
  40. declare module 'babylonjs-procedural-textures/src/starfield' {
  41. export * from "babylonjs-procedural-textures/src/starfield/starfieldProceduralTexture";
  42. }
  43. declare module 'babylonjs-procedural-textures/src/wood' {
  44. export * from "babylonjs-procedural-textures/src/wood/woodProceduralTexture";
  45. }
  46. declare module 'babylonjs-procedural-textures/src/brick/brickProceduralTexture' {
  47. import { ProceduralTexture, Color3, Scene, Texture } from "babylonjs";
  48. import "./brickProceduralTexture.fragment";
  49. export class BrickProceduralTexture extends ProceduralTexture {
  50. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  51. updateShaderUniforms(): void;
  52. numberOfBricksHeight: number;
  53. numberOfBricksWidth: number;
  54. jointColor: Color3;
  55. brickColor: Color3;
  56. /**
  57. * Serializes this brick procedural texture
  58. * @returns a serialized brick procedural texture object
  59. */
  60. serialize(): any;
  61. /**
  62. * Creates a Brick Procedural Texture from parsed brick procedural texture data
  63. * @param parsedTexture defines parsed texture data
  64. * @param scene defines the current scene
  65. * @param rootUrl defines the root URL containing brick procedural texture information
  66. * @returns a parsed Brick Procedural Texture
  67. */
  68. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): BrickProceduralTexture;
  69. }
  70. }
  71. declare module 'babylonjs-procedural-textures/src/cloud/cloudProceduralTexture' {
  72. import { ProceduralTexture, Color4, Scene, Texture } from "babylonjs";
  73. import "./cloudProceduralTexture.fragment";
  74. export class CloudProceduralTexture extends ProceduralTexture {
  75. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  76. updateShaderUniforms(): void;
  77. skyColor: Color4;
  78. cloudColor: Color4;
  79. /**
  80. * Serializes this cloud procedural texture
  81. * @returns a serialized cloud procedural texture object
  82. */
  83. serialize(): any;
  84. /**
  85. * Creates a Cloud Procedural Texture from parsed cloud procedural texture data
  86. * @param parsedTexture defines parsed texture data
  87. * @param scene defines the current scene
  88. * @param rootUrl defines the root URL containing cloud procedural texture information
  89. * @returns a parsed Cloud Procedural Texture
  90. */
  91. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): CloudProceduralTexture;
  92. }
  93. }
  94. declare module 'babylonjs-procedural-textures/src/fire/fireProceduralTexture' {
  95. import { ProceduralTexture, Vector2, Color3, Scene, Texture } from "babylonjs";
  96. import "./fireProceduralTexture.fragment";
  97. export class FireProceduralTexture extends ProceduralTexture {
  98. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  99. updateShaderUniforms(): void;
  100. render(useCameraPostProcess?: boolean): void;
  101. static readonly PurpleFireColors: Color3[];
  102. static readonly GreenFireColors: Color3[];
  103. static readonly RedFireColors: Color3[];
  104. static readonly BlueFireColors: Color3[];
  105. autoGenerateTime: boolean;
  106. fireColors: Color3[];
  107. time: number;
  108. speed: Vector2;
  109. alphaThreshold: number;
  110. /**
  111. * Serializes this fire procedural texture
  112. * @returns a serialized fire procedural texture object
  113. */
  114. serialize(): any;
  115. /**
  116. * Creates a Fire Procedural Texture from parsed fire procedural texture data
  117. * @param parsedTexture defines parsed texture data
  118. * @param scene defines the current scene
  119. * @param rootUrl defines the root URL containing fire procedural texture information
  120. * @returns a parsed Fire Procedural Texture
  121. */
  122. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): FireProceduralTexture;
  123. }
  124. }
  125. declare module 'babylonjs-procedural-textures/src/grass/grassProceduralTexture' {
  126. import { ProceduralTexture, Color3, Scene, Texture } from "babylonjs";
  127. import "./grassProceduralTexture.fragment";
  128. export class GrassProceduralTexture extends ProceduralTexture {
  129. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  130. updateShaderUniforms(): void;
  131. grassColors: Color3[];
  132. groundColor: Color3;
  133. /**
  134. * Serializes this grass procedural texture
  135. * @returns a serialized grass procedural texture object
  136. */
  137. serialize(): any;
  138. /**
  139. * Creates a Grass Procedural Texture from parsed grass procedural texture data
  140. * @param parsedTexture defines parsed texture data
  141. * @param scene defines the current scene
  142. * @param rootUrl defines the root URL containing grass procedural texture information
  143. * @returns a parsed Grass Procedural Texture
  144. */
  145. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): GrassProceduralTexture;
  146. }
  147. }
  148. declare module 'babylonjs-procedural-textures/src/marble/marbleProceduralTexture' {
  149. import { ProceduralTexture, Color3, Scene, Texture } from "babylonjs";
  150. import "./marbleProceduralTexture.fragment";
  151. export class MarbleProceduralTexture extends ProceduralTexture {
  152. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  153. updateShaderUniforms(): void;
  154. numberOfTilesHeight: number;
  155. amplitude: number;
  156. numberOfTilesWidth: number;
  157. jointColor: Color3;
  158. /**
  159. * Serializes this marble procedural texture
  160. * @returns a serialized marble procedural texture object
  161. */
  162. serialize(): any;
  163. /**
  164. * Creates a Marble Procedural Texture from parsed marble procedural texture data
  165. * @param parsedTexture defines parsed texture data
  166. * @param scene defines the current scene
  167. * @param rootUrl defines the root URL containing marble procedural texture information
  168. * @returns a parsed Marble Procedural Texture
  169. */
  170. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): MarbleProceduralTexture;
  171. }
  172. }
  173. declare module 'babylonjs-procedural-textures/src/normalMap/normalMapProceduralTexture' {
  174. import { ProceduralTexture, Texture, Scene } from "babylonjs";
  175. import "./normalMapProceduralTexture.fragment";
  176. export class NormalMapProceduralTexture extends ProceduralTexture {
  177. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  178. updateShaderUniforms(): void;
  179. render(useCameraPostProcess?: boolean): void;
  180. resize(size: any, generateMipMaps: any): void;
  181. baseTexture: Texture;
  182. /**
  183. * Serializes this normal map procedural texture
  184. * @returns a serialized normal map procedural texture object
  185. */
  186. serialize(): any;
  187. /**
  188. * Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
  189. * @param parsedTexture defines parsed texture data
  190. * @param scene defines the current scene
  191. * @param rootUrl defines the root URL containing normal map procedural texture information
  192. * @returns a parsed Normal Map Procedural Texture
  193. */
  194. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): NormalMapProceduralTexture;
  195. }
  196. }
  197. declare module 'babylonjs-procedural-textures/src/perlinNoise/perlinNoiseProceduralTexture' {
  198. import { ProceduralTexture, Scene, Texture } from "babylonjs";
  199. import "./perlinNoiseProceduralTexture.fragment";
  200. export class PerlinNoiseProceduralTexture extends ProceduralTexture {
  201. time: number;
  202. timeScale: number;
  203. translationSpeed: number;
  204. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  205. updateShaderUniforms(): void;
  206. render(useCameraPostProcess?: boolean): void;
  207. resize(size: any, generateMipMaps: any): void;
  208. /**
  209. * Serializes this perlin noise procedural texture
  210. * @returns a serialized perlin noise procedural texture object
  211. */
  212. serialize(): any;
  213. /**
  214. * Creates a Perlin Noise Procedural Texture from parsed perlin noise procedural texture data
  215. * @param parsedTexture defines parsed texture data
  216. * @param scene defines the current scene
  217. * @param rootUrl defines the root URL containing perlin noise procedural texture information
  218. * @returns a parsed Perlin Noise Procedural Texture
  219. */
  220. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): PerlinNoiseProceduralTexture;
  221. }
  222. }
  223. declare module 'babylonjs-procedural-textures/src/road/roadProceduralTexture' {
  224. import { ProceduralTexture, Color3, Scene, Texture } from "babylonjs";
  225. import "./roadProceduralTexture.fragment";
  226. export class RoadProceduralTexture extends ProceduralTexture {
  227. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  228. updateShaderUniforms(): void;
  229. roadColor: Color3;
  230. /**
  231. * Serializes this road procedural texture
  232. * @returns a serialized road procedural texture object
  233. */
  234. serialize(): any;
  235. /**
  236. * Creates a Road Procedural Texture from parsed road procedural texture data
  237. * @param parsedTexture defines parsed texture data
  238. * @param scene defines the current scene
  239. * @param rootUrl defines the root URL containing road procedural texture information
  240. * @returns a parsed Road Procedural Texture
  241. */
  242. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): RoadProceduralTexture;
  243. }
  244. }
  245. declare module 'babylonjs-procedural-textures/src/starfield/starfieldProceduralTexture' {
  246. import { ProceduralTexture, Scene, Texture } from "babylonjs";
  247. import "./starfieldProceduralTexture.fragment";
  248. export class StarfieldProceduralTexture extends ProceduralTexture {
  249. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  250. updateShaderUniforms(): void;
  251. time: number;
  252. alpha: number;
  253. beta: number;
  254. formuparam: number;
  255. stepsize: number;
  256. zoom: number;
  257. tile: number;
  258. brightness: number;
  259. darkmatter: number;
  260. distfading: number;
  261. saturation: number;
  262. /**
  263. * Serializes this starfield procedural texture
  264. * @returns a serialized starfield procedural texture object
  265. */
  266. serialize(): any;
  267. /**
  268. * Creates a Starfield Procedural Texture from parsed startfield procedural texture data
  269. * @param parsedTexture defines parsed texture data
  270. * @param scene defines the current scene
  271. * @param rootUrl defines the root URL containing startfield procedural texture information
  272. * @returns a parsed Starfield Procedural Texture
  273. */
  274. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): StarfieldProceduralTexture;
  275. }
  276. }
  277. declare module 'babylonjs-procedural-textures/src/wood/woodProceduralTexture' {
  278. import { ProceduralTexture, Color3, Scene, Texture } from "babylonjs";
  279. import "./woodProceduralTexture.fragment";
  280. export class WoodProceduralTexture extends ProceduralTexture {
  281. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  282. updateShaderUniforms(): void;
  283. ampScale: number;
  284. woodColor: Color3;
  285. /**
  286. * Serializes this wood procedural texture
  287. * @returns a serialized wood procedural texture object
  288. */
  289. serialize(): any;
  290. /**
  291. * Creates a Wood Procedural Texture from parsed wood procedural texture data
  292. * @param parsedTexture defines parsed texture data
  293. * @param scene defines the current scene
  294. * @param rootUrl defines the root URL containing wood procedural texture information
  295. * @returns a parsed Wood Procedural Texture
  296. */
  297. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): WoodProceduralTexture;
  298. }
  299. }
  300. /*BabylonJS Procedural Textures*/
  301. // Dependencies for this module:
  302. // ../../../../Tools/Gulp/babylonjs
  303. declare module BABYLON {
  304. export class BrickProceduralTexture extends BABYLON.ProceduralTexture {
  305. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  306. updateShaderUniforms(): void;
  307. numberOfBricksHeight: number;
  308. numberOfBricksWidth: number;
  309. jointColor: BABYLON.Color3;
  310. brickColor: BABYLON.Color3;
  311. /**
  312. * Serializes this brick procedural texture
  313. * @returns a serialized brick procedural texture object
  314. */
  315. serialize(): any;
  316. /**
  317. * Creates a Brick Procedural BABYLON.Texture from parsed brick procedural texture data
  318. * @param parsedTexture defines parsed texture data
  319. * @param scene defines the current scene
  320. * @param rootUrl defines the root URL containing brick procedural texture information
  321. * @returns a parsed Brick Procedural BABYLON.Texture
  322. */
  323. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): BrickProceduralTexture;
  324. }
  325. }
  326. declare module BABYLON {
  327. export class CloudProceduralTexture extends BABYLON.ProceduralTexture {
  328. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  329. updateShaderUniforms(): void;
  330. skyColor: BABYLON.Color4;
  331. cloudColor: BABYLON.Color4;
  332. /**
  333. * Serializes this cloud procedural texture
  334. * @returns a serialized cloud procedural texture object
  335. */
  336. serialize(): any;
  337. /**
  338. * Creates a Cloud Procedural BABYLON.Texture from parsed cloud procedural texture data
  339. * @param parsedTexture defines parsed texture data
  340. * @param scene defines the current scene
  341. * @param rootUrl defines the root URL containing cloud procedural texture information
  342. * @returns a parsed Cloud Procedural BABYLON.Texture
  343. */
  344. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): CloudProceduralTexture;
  345. }
  346. }
  347. declare module BABYLON {
  348. export class FireProceduralTexture extends BABYLON.ProceduralTexture {
  349. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  350. updateShaderUniforms(): void;
  351. render(useCameraPostProcess?: boolean): void;
  352. static readonly PurpleFireColors: BABYLON.Color3[];
  353. static readonly GreenFireColors: BABYLON.Color3[];
  354. static readonly RedFireColors: BABYLON.Color3[];
  355. static readonly BlueFireColors: BABYLON.Color3[];
  356. autoGenerateTime: boolean;
  357. fireColors: BABYLON.Color3[];
  358. time: number;
  359. speed: BABYLON.Vector2;
  360. alphaThreshold: number;
  361. /**
  362. * Serializes this fire procedural texture
  363. * @returns a serialized fire procedural texture object
  364. */
  365. serialize(): any;
  366. /**
  367. * Creates a Fire Procedural BABYLON.Texture from parsed fire procedural texture data
  368. * @param parsedTexture defines parsed texture data
  369. * @param scene defines the current scene
  370. * @param rootUrl defines the root URL containing fire procedural texture information
  371. * @returns a parsed Fire Procedural BABYLON.Texture
  372. */
  373. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): FireProceduralTexture;
  374. }
  375. }
  376. declare module BABYLON {
  377. export class GrassProceduralTexture extends BABYLON.ProceduralTexture {
  378. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  379. updateShaderUniforms(): void;
  380. grassColors: BABYLON.Color3[];
  381. groundColor: BABYLON.Color3;
  382. /**
  383. * Serializes this grass procedural texture
  384. * @returns a serialized grass procedural texture object
  385. */
  386. serialize(): any;
  387. /**
  388. * Creates a Grass Procedural BABYLON.Texture from parsed grass procedural texture data
  389. * @param parsedTexture defines parsed texture data
  390. * @param scene defines the current scene
  391. * @param rootUrl defines the root URL containing grass procedural texture information
  392. * @returns a parsed Grass Procedural BABYLON.Texture
  393. */
  394. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): GrassProceduralTexture;
  395. }
  396. }
  397. declare module BABYLON {
  398. export class MarbleProceduralTexture extends BABYLON.ProceduralTexture {
  399. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  400. updateShaderUniforms(): void;
  401. numberOfTilesHeight: number;
  402. amplitude: number;
  403. numberOfTilesWidth: number;
  404. jointColor: BABYLON.Color3;
  405. /**
  406. * Serializes this marble procedural texture
  407. * @returns a serialized marble procedural texture object
  408. */
  409. serialize(): any;
  410. /**
  411. * Creates a Marble Procedural BABYLON.Texture from parsed marble procedural texture data
  412. * @param parsedTexture defines parsed texture data
  413. * @param scene defines the current scene
  414. * @param rootUrl defines the root URL containing marble procedural texture information
  415. * @returns a parsed Marble Procedural BABYLON.Texture
  416. */
  417. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): MarbleProceduralTexture;
  418. }
  419. }
  420. declare module BABYLON {
  421. export class NormalMapProceduralTexture extends BABYLON.ProceduralTexture {
  422. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  423. updateShaderUniforms(): void;
  424. render(useCameraPostProcess?: boolean): void;
  425. resize(size: any, generateMipMaps: any): void;
  426. baseTexture: BABYLON.Texture;
  427. /**
  428. * Serializes this normal map procedural texture
  429. * @returns a serialized normal map procedural texture object
  430. */
  431. serialize(): any;
  432. /**
  433. * Creates a Normal Map Procedural BABYLON.Texture from parsed normal map procedural texture data
  434. * @param parsedTexture defines parsed texture data
  435. * @param scene defines the current scene
  436. * @param rootUrl defines the root URL containing normal map procedural texture information
  437. * @returns a parsed Normal Map Procedural BABYLON.Texture
  438. */
  439. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): NormalMapProceduralTexture;
  440. }
  441. }
  442. declare module BABYLON {
  443. export class PerlinNoiseProceduralTexture extends BABYLON.ProceduralTexture {
  444. time: number;
  445. timeScale: number;
  446. translationSpeed: number;
  447. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  448. updateShaderUniforms(): void;
  449. render(useCameraPostProcess?: boolean): void;
  450. resize(size: any, generateMipMaps: any): void;
  451. /**
  452. * Serializes this perlin noise procedural texture
  453. * @returns a serialized perlin noise procedural texture object
  454. */
  455. serialize(): any;
  456. /**
  457. * Creates a Perlin Noise Procedural BABYLON.Texture from parsed perlin noise procedural texture data
  458. * @param parsedTexture defines parsed texture data
  459. * @param scene defines the current scene
  460. * @param rootUrl defines the root URL containing perlin noise procedural texture information
  461. * @returns a parsed Perlin Noise Procedural BABYLON.Texture
  462. */
  463. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): PerlinNoiseProceduralTexture;
  464. }
  465. }
  466. declare module BABYLON {
  467. export class RoadProceduralTexture extends BABYLON.ProceduralTexture {
  468. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  469. updateShaderUniforms(): void;
  470. roadColor: BABYLON.Color3;
  471. /**
  472. * Serializes this road procedural texture
  473. * @returns a serialized road procedural texture object
  474. */
  475. serialize(): any;
  476. /**
  477. * Creates a Road Procedural BABYLON.Texture from parsed road procedural texture data
  478. * @param parsedTexture defines parsed texture data
  479. * @param scene defines the current scene
  480. * @param rootUrl defines the root URL containing road procedural texture information
  481. * @returns a parsed Road Procedural BABYLON.Texture
  482. */
  483. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): RoadProceduralTexture;
  484. }
  485. }
  486. declare module BABYLON {
  487. export class StarfieldProceduralTexture extends BABYLON.ProceduralTexture {
  488. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  489. updateShaderUniforms(): void;
  490. time: number;
  491. alpha: number;
  492. beta: number;
  493. formuparam: number;
  494. stepsize: number;
  495. zoom: number;
  496. tile: number;
  497. brightness: number;
  498. darkmatter: number;
  499. distfading: number;
  500. saturation: number;
  501. /**
  502. * Serializes this starfield procedural texture
  503. * @returns a serialized starfield procedural texture object
  504. */
  505. serialize(): any;
  506. /**
  507. * Creates a Starfield Procedural BABYLON.Texture from parsed startfield procedural texture data
  508. * @param parsedTexture defines parsed texture data
  509. * @param scene defines the current scene
  510. * @param rootUrl defines the root URL containing startfield procedural texture information
  511. * @returns a parsed Starfield Procedural BABYLON.Texture
  512. */
  513. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): StarfieldProceduralTexture;
  514. }
  515. }
  516. declare module BABYLON {
  517. export class WoodProceduralTexture extends BABYLON.ProceduralTexture {
  518. constructor(name: string, size: number, scene: BABYLON.Scene, fallbackTexture?: BABYLON.Texture, generateMipMaps?: boolean);
  519. updateShaderUniforms(): void;
  520. ampScale: number;
  521. woodColor: BABYLON.Color3;
  522. /**
  523. * Serializes this wood procedural texture
  524. * @returns a serialized wood procedural texture object
  525. */
  526. serialize(): any;
  527. /**
  528. * Creates a Wood Procedural BABYLON.Texture from parsed wood procedural texture data
  529. * @param parsedTexture defines parsed texture data
  530. * @param scene defines the current scene
  531. * @param rootUrl defines the root URL containing wood procedural texture information
  532. * @returns a parsed Wood Procedural BABYLON.Texture
  533. */
  534. static Parse(parsedTexture: any, scene: BABYLON.Scene, rootUrl: string): WoodProceduralTexture;
  535. }
  536. }