KHR_lights_punctual.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. import type { Nullable } from "@babylonjs/core/types.js";
  2. import type { TransformNode } from "@babylonjs/core/Meshes/transformNode.js";
  3. import type { INode } 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_lights_punctual/README.md)
  8. */
  9. export declare class KHR_lights implements IGLTFLoaderExtension {
  10. /**
  11. * The name of this extension.
  12. */
  13. readonly name = "KHR_lights_punctual";
  14. /**
  15. * Defines whether this extension is enabled.
  16. */
  17. enabled: boolean;
  18. /** hidden */
  19. private _loader;
  20. private _lights?;
  21. /**
  22. * @internal
  23. */
  24. constructor(loader: GLTFLoader);
  25. /** @internal */
  26. dispose(): void;
  27. /** @internal */
  28. onLoading(): void;
  29. /**
  30. * @internal
  31. */
  32. loadNodeAsync(context: string, node: INode, assign: (babylonTransformNode: TransformNode) => void): Nullable<Promise<TransformNode>>;
  33. }