@babylonjs/loaders
Version:
For usage documentation please visit https://doc.babylonjs.com/features/featuresDeepDive/importers/loadingFileTypes/.
44 lines (43 loc) • 1.48 kB
TypeScript
import type { Nullable } from "@babylonjs/core/types.js";
import type { Material } from "@babylonjs/core/Materials/material.js";
import type { IMaterial } from "../glTFLoaderInterfaces.js";
import type { IGLTFLoaderExtension } from "../glTFLoaderExtension.js";
import { GLTFLoader } from "../glTFLoader.js";
declare module "../../glTFFileLoader.js" {
interface GLTFLoaderExtensionOptions {
/**
* Defines options for the EXT_materials_diffuse_roughness extension.
*/
["EXT_materials_diffuse_roughness"]: {};
}
}
/**
* [Specification](https://github.com/KhronosGroup/glTF/blob/fdee35425ae560ea378092e38977216d63a094ec/extensions/2.0/Khronos/EXT_materials_diffuse_roughness/README.md)
* @experimental
*/
export declare class EXT_materials_diffuse_roughness implements IGLTFLoaderExtension {
/**
* The name of this extension.
*/
readonly name = "EXT_materials_diffuse_roughness";
/**
* Defines whether this extension is enabled.
*/
enabled: boolean;
/**
* Defines a number that determines the order the extensions are applied.
*/
order: number;
private _loader;
/**
* @internal
*/
constructor(loader: GLTFLoader);
/** @internal */
dispose(): void;
/**
* @internal
*/
loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
private _loadDiffuseRoughnessPropertiesAsync;
}