babylon.material.d.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. declare module BABYLON {
  2. class Material {
  3. public name: string;
  4. private static _TriangleFillMode;
  5. private static _WireFrameFillMode;
  6. private static _PointFillMode;
  7. static TriangleFillMode : number;
  8. static WireFrameFillMode : number;
  9. static PointFillMode : number;
  10. public id: string;
  11. public checkReadyOnEveryCall: boolean;
  12. public checkReadyOnlyOnce: boolean;
  13. public state: string;
  14. public alpha: number;
  15. public backFaceCulling: boolean;
  16. public onCompiled: (effect: Effect) => void;
  17. public onError: (effect: Effect, errors: string) => void;
  18. public onDispose: () => void;
  19. public onBind: (material: Material) => void;
  20. public getRenderTargetTextures: () => SmartArray<RenderTargetTexture>;
  21. public _effect: Effect;
  22. public _wasPreviouslyReady: boolean;
  23. private _scene;
  24. private _fillMode;
  25. public pointSize: number;
  26. public wireframe : boolean;
  27. public pointsCloud : boolean;
  28. public fillMode : number;
  29. constructor(name: string, scene: Scene, doNotAdd?: boolean);
  30. public isReady(mesh?: AbstractMesh, useInstances?: boolean): boolean;
  31. public getEffect(): Effect;
  32. public getScene(): Scene;
  33. public needAlphaBlending(): boolean;
  34. public needAlphaTesting(): boolean;
  35. public getAlphaTestTexture(): BaseTexture;
  36. public trackCreation(onCompiled: (effect: Effect) => void, onError: (effect: Effect, errors: string) => void): void;
  37. public _preBind(): void;
  38. public bind(world: Matrix, mesh: Mesh): void;
  39. public bindOnlyWorldMatrix(world: Matrix): void;
  40. public unbind(): void;
  41. public dispose(forceDisposeEffect?: boolean): void;
  42. }
  43. }