Renderer · interface
LightmapModel
A surface whose static light was baked: the standard model, plus a lightmap page's light read at
the mesh's second coordinates (MeshData.lightmapUvs). The material's modelMap is the page,
from createLightmap; see lightmap.ts for what it adds and what it gives up.
Explained in Hello world.
interface LightmapModelimport type { LightmapModel } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
kindreadonly | 'lightmap' | |
regionreadonly | LightmapRegion | Where this material's surfaces are on the page: uv2 * scale + bias. See LightmapRegion. |