Module lightmap

Source
Expand description

Module to generate lightmaps for surfaces.

§Performance

This is CPU lightmapper, its performance is linear with core count of your CPU.

Structs§

CancellationToken
Small helper that allows you stop lightmap generation in any time.
Lightmap
Lightmap is a texture with precomputed lighting.
LightmapEntry
Lightmap entry.
LightmapInputData
Data set required to generate a lightmap. It could be produced from a scene using LightmapInputData::from_scene method. It is used to split preparation step from the actual lightmap generation; to be able to put heavy generation in a separate thread.
ProgressData
Progress internals.
ProgressIndicator
Small helper that allows you to track progress of lightmap generation.

Enums§

LightmapGenerationError
An error that may occur during ligthmap generation.
ProgressStage
Lightmap generation stage.

Functions§

apply_surface_data_patch
Applies surface data patch to a surface data.