Skip to content

Function: sampleSectionLight() ​

ts
function sampleSectionLight(light, index): SavedLightSample | undefined;

Defined in: packages/minerender/src/world/WorldLight.ts:30

Reads a cell in x + 16z + 256y order. Missing section data remains distinct from saved darkness.

Parameters ​

ParameterType
lightSectionLightData | undefined
indexnumber

Returns ​

SavedLightSample | undefined