babylonjs.proceduralTextures.d.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. declare module BABYLON {
  2. class WoodProceduralTexture extends ProceduralTexture {
  3. private _ampScale;
  4. private _woodColor;
  5. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  6. updateShaderUniforms(): void;
  7. ampScale: number;
  8. woodColor: Color3;
  9. /**
  10. * Serializes this wood procedural texture
  11. * @returns a serialized wood procedural texture object
  12. */
  13. serialize(): any;
  14. /**
  15. * Creates a Wood Procedural Texture from parsed wood procedural texture data
  16. * @param parsedTexture defines parsed texture data
  17. * @param scene defines the current scene
  18. * @param rootUrl defines the root URL containing wood procedural texture information
  19. * @returns a parsed Wood Procedural Texture
  20. */
  21. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): WoodProceduralTexture;
  22. }
  23. }
  24. declare module BABYLON {
  25. class FireProceduralTexture extends ProceduralTexture {
  26. private _time;
  27. private _speed;
  28. private _autoGenerateTime;
  29. private _fireColors;
  30. private _alphaThreshold;
  31. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  32. updateShaderUniforms(): void;
  33. render(useCameraPostProcess?: boolean): void;
  34. static readonly PurpleFireColors: Color3[];
  35. static readonly GreenFireColors: Color3[];
  36. static readonly RedFireColors: Color3[];
  37. static readonly BlueFireColors: Color3[];
  38. fireColors: Color3[];
  39. time: number;
  40. speed: Vector2;
  41. alphaThreshold: number;
  42. /**
  43. * Serializes this fire procedural texture
  44. * @returns a serialized fire procedural texture object
  45. */
  46. serialize(): any;
  47. /**
  48. * Creates a Fire Procedural Texture from parsed fire procedural texture data
  49. * @param parsedTexture defines parsed texture data
  50. * @param scene defines the current scene
  51. * @param rootUrl defines the root URL containing fire procedural texture information
  52. * @returns a parsed Fire Procedural Texture
  53. */
  54. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): FireProceduralTexture;
  55. }
  56. }
  57. declare module BABYLON {
  58. class CloudProceduralTexture extends ProceduralTexture {
  59. private _skyColor;
  60. private _cloudColor;
  61. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  62. updateShaderUniforms(): void;
  63. skyColor: Color4;
  64. cloudColor: Color4;
  65. /**
  66. * Serializes this cloud procedural texture
  67. * @returns a serialized cloud procedural texture object
  68. */
  69. serialize(): any;
  70. /**
  71. * Creates a Cloud Procedural Texture from parsed cloud procedural texture data
  72. * @param parsedTexture defines parsed texture data
  73. * @param scene defines the current scene
  74. * @param rootUrl defines the root URL containing cloud procedural texture information
  75. * @returns a parsed Cloud Procedural Texture
  76. */
  77. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): CloudProceduralTexture;
  78. }
  79. }
  80. declare module BABYLON {
  81. class GrassProceduralTexture extends ProceduralTexture {
  82. private _grassColors;
  83. private _groundColor;
  84. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  85. updateShaderUniforms(): void;
  86. grassColors: Color3[];
  87. groundColor: Color3;
  88. /**
  89. * Serializes this grass procedural texture
  90. * @returns a serialized grass procedural texture object
  91. */
  92. serialize(): any;
  93. /**
  94. * Creates a Grass Procedural Texture from parsed grass procedural texture data
  95. * @param parsedTexture defines parsed texture data
  96. * @param scene defines the current scene
  97. * @param rootUrl defines the root URL containing grass procedural texture information
  98. * @returns a parsed Grass Procedural Texture
  99. */
  100. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): GrassProceduralTexture;
  101. }
  102. }
  103. declare module BABYLON {
  104. class RoadProceduralTexture extends ProceduralTexture {
  105. private _roadColor;
  106. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  107. updateShaderUniforms(): void;
  108. roadColor: Color3;
  109. /**
  110. * Serializes this road procedural texture
  111. * @returns a serialized road procedural texture object
  112. */
  113. serialize(): any;
  114. /**
  115. * Creates a Road Procedural Texture from parsed road procedural texture data
  116. * @param parsedTexture defines parsed texture data
  117. * @param scene defines the current scene
  118. * @param rootUrl defines the root URL containing road procedural texture information
  119. * @returns a parsed Road Procedural Texture
  120. */
  121. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): RoadProceduralTexture;
  122. }
  123. }
  124. declare module BABYLON {
  125. class BrickProceduralTexture extends ProceduralTexture {
  126. private _numberOfBricksHeight;
  127. private _numberOfBricksWidth;
  128. private _jointColor;
  129. private _brickColor;
  130. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  131. updateShaderUniforms(): void;
  132. numberOfBricksHeight: number;
  133. numberOfBricksWidth: number;
  134. jointColor: Color3;
  135. brickColor: Color3;
  136. /**
  137. * Serializes this brick procedural texture
  138. * @returns a serialized brick procedural texture object
  139. */
  140. serialize(): any;
  141. /**
  142. * Creates a Brick Procedural Texture from parsed brick procedural texture data
  143. * @param parsedTexture defines parsed texture data
  144. * @param scene defines the current scene
  145. * @param rootUrl defines the root URL containing brick procedural texture information
  146. * @returns a parsed Brick Procedural Texture
  147. */
  148. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): BrickProceduralTexture;
  149. }
  150. }
  151. declare module BABYLON {
  152. class MarbleProceduralTexture extends ProceduralTexture {
  153. private _numberOfTilesHeight;
  154. private _numberOfTilesWidth;
  155. private _amplitude;
  156. private _jointColor;
  157. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  158. updateShaderUniforms(): void;
  159. numberOfTilesHeight: number;
  160. amplitude: number;
  161. numberOfTilesWidth: number;
  162. jointColor: Color3;
  163. /**
  164. * Serializes this marble procedural texture
  165. * @returns a serialized marble procedural texture object
  166. */
  167. serialize(): any;
  168. /**
  169. * Creates a Marble Procedural Texture from parsed marble procedural texture data
  170. * @param parsedTexture defines parsed texture data
  171. * @param scene defines the current scene
  172. * @param rootUrl defines the root URL containing marble procedural texture information
  173. * @returns a parsed Marble Procedural Texture
  174. */
  175. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): MarbleProceduralTexture;
  176. }
  177. }
  178. declare module BABYLON {
  179. class StarfieldProceduralTexture extends ProceduralTexture {
  180. private _time;
  181. private _alpha;
  182. private _beta;
  183. private _zoom;
  184. private _formuparam;
  185. private _stepsize;
  186. private _tile;
  187. private _brightness;
  188. private _darkmatter;
  189. private _distfading;
  190. private _saturation;
  191. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  192. updateShaderUniforms(): void;
  193. time: number;
  194. alpha: number;
  195. beta: number;
  196. formuparam: number;
  197. stepsize: number;
  198. zoom: number;
  199. tile: number;
  200. brightness: number;
  201. darkmatter: number;
  202. distfading: number;
  203. saturation: number;
  204. /**
  205. * Serializes this starfield procedural texture
  206. * @returns a serialized starfield procedural texture object
  207. */
  208. serialize(): any;
  209. /**
  210. * Creates a Starfield Procedural Texture from parsed startfield procedural texture data
  211. * @param parsedTexture defines parsed texture data
  212. * @param scene defines the current scene
  213. * @param rootUrl defines the root URL containing startfield procedural texture information
  214. * @returns a parsed Starfield Procedural Texture
  215. */
  216. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): StarfieldProceduralTexture;
  217. }
  218. }
  219. declare module BABYLON {
  220. class NormalMapProceduralTexture extends ProceduralTexture {
  221. private _baseTexture;
  222. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  223. updateShaderUniforms(): void;
  224. render(useCameraPostProcess?: boolean): void;
  225. resize(size: any, generateMipMaps: any): void;
  226. baseTexture: Texture;
  227. /**
  228. * Serializes this normal map procedural texture
  229. * @returns a serialized normal map procedural texture object
  230. */
  231. serialize(): any;
  232. /**
  233. * Creates a Normal Map Procedural Texture from parsed normal map procedural texture data
  234. * @param parsedTexture defines parsed texture data
  235. * @param scene defines the current scene
  236. * @param rootUrl defines the root URL containing normal map procedural texture information
  237. * @returns a parsed Normal Map Procedural Texture
  238. */
  239. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): NormalMapProceduralTexture;
  240. }
  241. }
  242. declare module BABYLON {
  243. class PerlinNoiseProceduralTexture extends ProceduralTexture {
  244. time: number;
  245. speed: number;
  246. translationSpeed: number;
  247. private _currentTranslation;
  248. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  249. updateShaderUniforms(): void;
  250. render(useCameraPostProcess?: boolean): void;
  251. resize(size: any, generateMipMaps: any): void;
  252. /**
  253. * Serializes this perlin noise procedural texture
  254. * @returns a serialized perlin noise procedural texture object
  255. */
  256. serialize(): any;
  257. /**
  258. * Creates a Perlin Noise Procedural Texture from parsed perlin noise procedural texture data
  259. * @param parsedTexture defines parsed texture data
  260. * @param scene defines the current scene
  261. * @param rootUrl defines the root URL containing perlin noise procedural texture information
  262. * @returns a parsed Perlin Noise Procedural Texture
  263. */
  264. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): PerlinNoiseProceduralTexture;
  265. }
  266. }