babylon.gradientMaterial.d.ts 1.0 KB

12345678910111213141516171819202122232425262728
  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. smoothness: number;
  11. disableLighting: boolean;
  12. private _scaledDiffuse;
  13. private _renderId;
  14. constructor(name: string, scene: Scene);
  15. needAlphaBlending(): boolean;
  16. needAlphaTesting(): boolean;
  17. getAlphaTestTexture(): Nullable<BaseTexture>;
  18. isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
  19. bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
  20. getAnimatables(): IAnimatable[];
  21. dispose(forceDisposeEffect?: boolean): void;
  22. clone(name: string): GradientMaterial;
  23. serialize(): any;
  24. getClassName(): string;
  25. static Parse(source: any, scene: Scene, rootUrl: string): GradientMaterial;
  26. }
  27. }