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.43 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';
/**
* Light Map Extension
*
* lightMapTexture and lightMapIntensity are added to the material
*
* Specification: https://threepipe.org/docs/gltf-extensions/WEBGI_materials_lightmap.html
*/
export declare class GLTFMaterialsLightMapExtension {
static readonly WebGiMaterialsLightMapExtension = "WEBGI_materials_lightmap";
static Import: (parser: GLTFParser) => GLTFLoaderPlugin;
static Export: (writer: GLTFWriter) => GLTFExporterPlugin;
static Textures: Record<string, string | number>;
}
declare class GLTFMaterialsLightMapExtensionImport {
parser: GLTFParser;
name: string;
constructor(parser: GLTFParser);
extendMaterialParams(materialIndex: number, materialParams: any): Promise<void | import('three').Texture<import('three').TextureEventMap>[]>;
}
export type { GLTFMaterialsLightMapExtensionImport };
declare class GLTFMaterialsLightMapExtensionExport {
writer: GLTFWriter;
name: string;
constructor(writer: GLTFWriter);
writeMaterial(material: MeshStandardMaterial, materialDef: any): void;
}
export type { GLTFMaterialsLightMapExtensionExport };
//# sourceMappingURL=../../src/assetmanager/gltf/GLTFMaterialsLightMapExtension.d.ts.map