UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

33 lines 1.53 kB
import { GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader.js'; import { MeshStandardMaterial } from 'three'; import { GLTFExporterPlugin, GLTFWriter } from 'three/examples/jsm/exporters/GLTFExporter.js'; /** * Bump Map Extension * * bumpTexture and bumpScale are added to the material * * Note - this is not deprecated as an official KHR extension now exists, but the importer is kept as it's used in many files. * * Specification: https://threepipe.org/docs/gltf-extensions/WEBGI_materials_bumpmap.html */ export declare class GLTFMaterialsBumpMapExtension { static readonly WebGiMaterialsBumpMapExtension = "WEBGI_materials_bumpmap"; static Import: (parser: GLTFParser) => GLTFLoaderPlugin; static Export: (writer: GLTFWriter) => GLTFExporterPlugin; static Textures: Record<string, string | number>; } declare class GLTFMaterialsBumpMapExtensionImport { parser: GLTFParser; name: string; constructor(parser: GLTFParser); extendMaterialParams(materialIndex: number, materialParams: any): Promise<void | import('three').Texture<import('three').TextureEventMap>[]>; } export type { GLTFMaterialsBumpMapExtensionImport }; declare class GLTFMaterialsBumpMapExtensionExport { writer: GLTFWriter; name: string; constructor(writer: GLTFWriter); writeMaterial(material: MeshStandardMaterial, materialDef: any): void; } export type { GLTFMaterialsBumpMapExtensionExport }; //# sourceMappingURL=../../src/assetmanager/gltf/GLTFMaterialsBumpMapExtension.d.ts.map