UNPKG

threepipe

Version:

A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.

31 lines 1.35 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'; /** * Bump Map Extension * * bumpTexture and bumpScale are added to the material * * Specification: https://webgi.xyz/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[]>; } export type { GLTFMaterialsBumpMapExtensionImport }; declare class GLTFMaterialsBumpMapExtensionExport { writer: GLTFWriter; name: string; constructor(writer: GLTFWriter); writeMaterial(material: MeshStandardMaterial, materialDef: any): void; } export type { GLTFMaterialsBumpMapExtensionExport }; //# sourceMappingURL=GLTFMaterialsBumpMapExtension.d.ts.map