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.
19 lines • 903 B
TypeScript
/**
* Materials variants extension
* Modified from https://github.com/takahirox/three-gltf-extensions/blob/main/exporters/KHR_materials_variants/KHR_materials_variants_exporter.js
*
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_variants
*/
import { Mesh, Object3D } from 'three';
import { GLTFWriter2 } from '../../../assetmanager';
export declare class GLTFExporterMaterialsVariantsExtensionExport {
writer: GLTFWriter2;
name: string;
variantNames: string[];
constructor(writer: GLTFWriter2);
beforeParse(objects: Object3D[]): void;
writeMesh(mesh: Mesh, meshDef: any): void;
afterParse(_input: any): void;
}
export declare function gltfExporterMaterialsVariantsExtensionExport(writer: GLTFWriter2): GLTFExporterMaterialsVariantsExtensionExport;
//# sourceMappingURL=GLTFMaterialsVariantsExtensionExport.d.ts.map