UNPKG

webgi-gltf-extensions

Version:

WEBGI GLTF Extensions for glTF-Transform and three.js

30 lines 1.37 kB
import type { GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader'; import type { MeshStandardMaterial } from 'three'; import type { GLTFExporterPlugin, GLTFWriter } from 'three/examples/jsm/exporters/GLTFExporter'; /** * Displacement Map Extension * * displacementTexture and displacementScale are added to the material * * Specification: https://webgi.xyz/docs/gltf-extensions/WEBGI_materials_displacementmap.html */ export declare class GLTFMaterialsDisplacementMapExtension { static readonly WebGiMaterialsDisplacementMapExtension = "WEBGI_materials_displacementmap"; static Import: (parser: GLTFParser) => GLTFLoaderPlugin; static Export: (writer: GLTFWriter) => GLTFExporterPlugin; } declare class GLTFMaterialsDisplacementMapExtensionImport { parser: GLTFParser; name: string; constructor(parser: GLTFParser); extendMaterialParams(materialIndex: number, materialParams: any): Promise<void | void[]>; } export type { GLTFMaterialsDisplacementMapExtensionImport }; declare class GLTFMaterialsDisplacementMapExtensionExport { writer: GLTFWriter; name: string; constructor(writer: GLTFWriter); writeMaterial(material: MeshStandardMaterial, materialDef: any): void; } export type { GLTFMaterialsDisplacementMapExtensionExport }; //# sourceMappingURL=GLTFMaterialsDisplacementMapExtension.d.ts.map