Skip to main content

Class: GLTFMaterialsLightMapExtension

Asset-Management.GLTFMaterialsLightMapExtension

Light Map Extension

lightMapTexture and lightMapIntensity are added to the material

Specification: https://webgi.xyz/docs/gltf-extensions/WEBGI_materials_lightmap.html

Properties​

name​

• name: string


parser​

• parser: GLTFParser

Constructors​

constructor​

• new GLTFMaterialsLightMapExtension(parser)

Parameters​

NameType
parserGLTFParser

Methods​

extendMaterialParams​

▸ extendMaterialParams(materialIndex, materialParams): Promise<void | Texture<TextureEventMap>[]>

Parameters​

NameType
materialIndexnumber
materialParamsany

Returns​

Promise<void | Texture<TextureEventMap>[]>