babylon.simpleMaterial.d.ts 1.1 KB

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