threepipe
Version:
A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.
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