Skip to content

BakeJob

BakeJob = { kind: "direct"; out: Float32Array; } | { atlas: Float32Array; kind: "gather"; out: Float32Array; } | { atlas: Float32Array; kind: "probes"; out: Float32Array; positions: Float64Array; samples: number; skyVisibility: Float32Array | null; }

Defined in: sdk/src/lightmap/bake.ts:317

One pass over every lumel, or over a list of probes. Each writes only its own entries of out, so any split of the range (jobLength) gives the same result.

{ kind: "direct"; out: Float32Array; }


{ atlas: Float32Array; kind: "gather"; out: Float32Array; }


{ atlas: Float32Array; kind: "probes"; out: Float32Array; positions: Float64Array; samples: number; skyVisibility: Float32Array | null; }

Probes at positions (three doubles each) gathering the solved light field atlas: 27 coefficients each into out, and with sky occlusion nine of how much sky each sees into skyVisibility (the sky then not gathered).