MeshDistanceMaterial.d.ts 850 B

12345678910111213141516171819202122232425262728293031
  1. import { MaterialParameters, Material } from './Material';
  2. import { Vector3 } from './../math/Vector3';
  3. import { Texture } from './../textures/Texture';
  4. export interface MeshDistanceMaterialParameters extends MaterialParameters {
  5. map?: Texture | null;
  6. alphaMap?: Texture | null;
  7. displacementMap?: Texture | null;
  8. displacementScale?: number;
  9. displacementBias?: number;
  10. farDistance?: number;
  11. nearDistance?: number;
  12. referencePosition?: Vector3;
  13. }
  14. export class MeshDistanceMaterial extends Material {
  15. constructor( parameters?: MeshDistanceMaterialParameters );
  16. map: Texture | null;
  17. alphaMap: Texture | null;
  18. displacementMap: Texture | null;
  19. displacementScale: number;
  20. displacementBias: number;
  21. farDistance: number;
  22. nearDistance: number;
  23. referencePosition: Vector3;
  24. setValues( parameters: MeshDistanceMaterialParameters ): void;
  25. }
粤ICP备19079148号