babylon.fireProceduralTexture.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. autoGenerateTime: boolean;
  16. fireColors: Color3[];
  17. time: number;
  18. speed: Vector2;
  19. alphaThreshold: number;
  20. /**
  21. * Serializes this fire procedural texture
  22. * @returns a serialized fire procedural texture object
  23. */
  24. serialize(): any;
  25. /**
  26. * Creates a Fire Procedural Texture from parsed fire procedural texture data
  27. * @param parsedTexture defines parsed texture data
  28. * @param scene defines the current scene
  29. * @param rootUrl defines the root URL containing fire procedural texture information
  30. * @returns a parsed Fire Procedural Texture
  31. */
  32. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): FireProceduralTexture;
  33. }
  34. }