KHR_materials_sheen.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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_sheen/README.md)
  8. * [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)
  9. */
  10. export declare class KHR_materials_sheen implements IGLTFLoaderExtension {
  11. /**
  12. * The name of this extension.
  13. */
  14. readonly name = "KHR_materials_sheen";
  15. /**
  16. * Defines whether this extension is enabled.
  17. */
  18. enabled: boolean;
  19. /**
  20. * Defines a number that determines the order the extensions are applied.
  21. */
  22. order: number;
  23. private _loader;
  24. /**
  25. * @internal
  26. */
  27. constructor(loader: GLTFLoader);
  28. /** @internal */
  29. dispose(): void;
  30. /**
  31. * @internal
  32. */
  33. loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
  34. private _loadSheenPropertiesAsync;
  35. }