babylon.gradientMaterial.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829
  1. declare module BABYLON {
  2. class GradientMaterial extends PushMaterial {
  3. private _maxSimultaneousLights;
  4. maxSimultaneousLights: number;
  5. topColor: Color3;
  6. topColorAlpha: number;
  7. bottomColor: Color3;
  8. bottomColorAlpha: number;
  9. offset: number;
  10. scale: number;
  11. smoothness: number;
  12. disableLighting: boolean;
  13. private _scaledDiffuse;
  14. private _renderId;
  15. constructor(name: string, scene: Scene);
  16. needAlphaBlending(): boolean;
  17. needAlphaTesting(): boolean;
  18. getAlphaTestTexture(): Nullable<BaseTexture>;
  19. isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
  20. bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
  21. getAnimatables(): IAnimatable[];
  22. dispose(forceDisposeEffect?: boolean): void;
  23. clone(name: string): GradientMaterial;
  24. serialize(): any;
  25. getClassName(): string;
  26. static Parse(source: any, scene: Scene, rootUrl: string): GradientMaterial;
  27. }
  28. }