KHR_materials_iridescence.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import type { Nullable } from "@babylonjs/core/types.js";
  2. import type { Material } from "@babylonjs/core/Materials/material.js";
  3. import type { IMaterial } from "../glTFLoaderInterfaces";
  4. import type { IGLTFLoaderExtension } from "../glTFLoaderExtension";
  5. import { GLTFLoader } from "../glTFLoader";
  6. /**
  7. * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_iridescence/README.md)
  8. */
  9. export declare class KHR_materials_iridescence implements IGLTFLoaderExtension {
  10. /**
  11. * The name of this extension.
  12. */
  13. readonly name = "KHR_materials_iridescence";
  14. /**
  15. * Defines whether this extension is enabled.
  16. */
  17. enabled: boolean;
  18. /**
  19. * Defines a number that determines the order the extensions are applied.
  20. */
  21. order: number;
  22. private _loader;
  23. /**
  24. * @internal
  25. */
  26. constructor(loader: GLTFLoader);
  27. /** @internal */
  28. dispose(): void;
  29. /**
  30. * @internal
  31. */
  32. loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
  33. private _loadIridescencePropertiesAsync;
  34. }