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 LightmapModel
import type { LightmapModel } from '@driftengine/core';

Properties

NameTypeDescription
kindreadonly'lightmap'
regionreadonlyLightmapRegionWhere this material's surfaces are on the page: uv2 * scale + bias. See LightmapRegion.