UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

18 lines (17 loc) 608 B
import { MeshPhongMaterial, WebGLRenderTarget, Texture } from 'three'; export declare const DEFAULT_UV_LIGHT_MAP_ATTRIB_NAME = "uvLightMap"; export interface LightMapMaterial extends MeshPhongMaterial { uniforms: { previousLightMap: { value: Texture | null; }; lightMapMult: { value: number; }; }; } export interface LightMapMatOptions { lightMap: WebGLRenderTarget; } export declare function setLightMapMaterial(mat: LightMapMaterial, options: LightMapMatOptions): void; export declare function createLightMapMaterial(): LightMapMaterial;