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.
31 lines • 1.5 kB
TypeScript
import { GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader.js';
import { MeshStandardMaterial } from 'three';
import { GLTFExporterPlugin, GLTFWriter } from 'three/examples/jsm/exporters/GLTFExporter.js';
/**
* Displacement Map Extension
*
* displacementTexture and displacementScale are added to the material
*
* Specification: https://threepipe.org/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;
static Textures: Record<string, string | number>;
}
declare class GLTFMaterialsDisplacementMapExtensionImport {
parser: GLTFParser;
name: string;
constructor(parser: GLTFParser);
extendMaterialParams(materialIndex: number, materialParams: any): Promise<void | import('three').Texture<import('three').TextureEventMap>[]>;
}
export type { GLTFMaterialsDisplacementMapExtensionImport };
declare class GLTFMaterialsDisplacementMapExtensionExport {
writer: GLTFWriter;
name: string;
constructor(writer: GLTFWriter);
writeMaterial(material: MeshStandardMaterial, materialDef: any): void;
}
export type { GLTFMaterialsDisplacementMapExtensionExport };
//# sourceMappingURL=../../src/assetmanager/gltf/GLTFMaterialsDisplacementMapExtension.d.ts.map