babylon.normalMaterial.d.ts 1.1 KB

12345678910111213141516171819202122232425262728
  1. declare module BABYLON {
  2. class NormalMaterial 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. needAlphaBlendingForMesh(mesh: AbstractMesh): boolean;
  14. needAlphaTesting(): boolean;
  15. getAlphaTestTexture(): Nullable<BaseTexture>;
  16. isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
  17. bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
  18. getAnimatables(): IAnimatable[];
  19. getActiveTextures(): BaseTexture[];
  20. hasTexture(texture: BaseTexture): boolean;
  21. dispose(forceDisposeEffect?: boolean): void;
  22. clone(name: string): NormalMaterial;
  23. serialize(): any;
  24. getClassName(): string;
  25. static Parse(source: any, scene: Scene, rootUrl: string): NormalMaterial;
  26. }
  27. }