babylon.fireProceduralTexture.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. declare module BABYLON {
  2. class FireProceduralTexture extends ProceduralTexture {
  3. private _time;
  4. private _speed;
  5. private _autoGenerateTime;
  6. private _fireColors;
  7. private _alphaThreshold;
  8. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  9. updateShaderUniforms(): void;
  10. render(useCameraPostProcess?: boolean): void;
  11. static readonly PurpleFireColors: Color3[];
  12. static readonly GreenFireColors: Color3[];
  13. static readonly RedFireColors: Color3[];
  14. static readonly BlueFireColors: Color3[];
  15. fireColors: Color3[];
  16. time: number;
  17. speed: Vector2;
  18. alphaThreshold: number;
  19. /**
  20. * Serializes this fire procedural texture
  21. * @returns a serialized fire procedural texture object
  22. */
  23. serialize(): any;
  24. /**
  25. * Creates a Fire Procedural Texture from parsed fire procedural texture data
  26. * @param parsedTexture defines parsed texture data
  27. * @param scene defines the current scene
  28. * @param rootUrl defines the root URL containing fire procedural texture information
  29. * @returns a parsed Fire Procedural Texture
  30. */
  31. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): FireProceduralTexture;
  32. }
  33. }