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