babylon.material.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //// <reference path="../babylon.d.ts" />
  2. declare module BABYLON {
  3. class Material {
  4. name: string;
  5. id: string;
  6. private _scene: Scene;
  7. constructor(name: string, scene: Scene);
  8. alpha: number;
  9. wireframe: bool;
  10. backFaceCulling: bool;
  11. _effect: Effect;
  12. onDispose: () => void;
  13. isReady(): bool;
  14. getEffect(): Effect;
  15. needAlphaBlending(): bool;
  16. needAlphaTesting(): bool;
  17. _preBind(): void;
  18. bind(world: Matrix, mesh: Mesh): void;
  19. unbind(): void;
  20. dispose(): void;
  21. }
  22. class MultiMaterial extends Material {
  23. constructor(name: string, scene: Scene);
  24. getSubMaterial(index: number): Material;
  25. }
  26. class StandardMaterial extends Material {
  27. diffuseTexture: Texture;
  28. ambientTexture: Texture;
  29. opacityTexture: Texture;
  30. reflectionTexture: Texture;
  31. emissiveTexture: Texture;
  32. specularTexture: Texture;
  33. ambientColor: Color3;
  34. diffuseColor: Color3;
  35. specularColor: Color3;
  36. specularPower: number;
  37. emissiveColor: Color3;
  38. getRenderTargetTextures(): Texture[];
  39. getAnimatables(): Texture[];
  40. }
  41. }