HammeriteLightmapBakeReport

Core: lighting. Inherits RefCounted

What each pass of a bake did to the light: how much energy the texels and probes held after it, static and switchable, and how many held any. Left on HammeriteLightmapper.bake_report when a bake ends, to ask whether light got where it should - "the probes gathered in GATHER", "a bounce added light in DISTRIBUTE". Totals only; the texels and probes themselves are live on the map.

Properties

TypeNameDefault
HammeriteLightmapBakeReport.PassSnapshot[]passes[]

Methods

ReturnsMethod
Stringkind_name(k: int) static
HammeriteLightmapBakeReport.PassSnapshotsnapshot(index: int)
HammeriteLightmapBakeReport.PassSnapshotof_kind(kind: int)
HammeriteLightmapBakeReport.PassSnapshot[]all_of_kind(kind: int)
HammeriteLightmapBakeReport.PassSnapshotlast()
Stringto_text()

Enumerations

enum Kind

ValueNameDescription
0DIRECT
1GATHER
2BOUNCE
3DISTRIBUTE

Property descriptions

passes

var passes: HammeriteLightmapBakeReport.PassSnapshot[] = []

Undocumented.

Method descriptions

kind_name()

static func kind_name(k: int) -> String

Human-readable name for a Kind value. Static and on the outer class so both PassSnapshot consumers and external callers can use it (the enum is only in scope here, not inside PassSnapshot).

snapshot()

func snapshot(index: int) -> HammeriteLightmapBakeReport.PassSnapshot

The snapshot for a given pass index, or null.

of_kind()

func of_kind(kind: int) -> HammeriteLightmapBakeReport.PassSnapshot

The FIRST snapshot of a given Kind, or null. (A multi-bounce bake has several BOUNCE passes.)

all_of_kind()

func all_of_kind(kind: int) -> HammeriteLightmapBakeReport.PassSnapshot[]

Every snapshot of a given Kind, in pass order.

last()

func last() -> HammeriteLightmapBakeReport.PassSnapshot

The last recorded snapshot (the distribute pass, for a bounced bake), or null.

to_text()

func to_text() -> String

Compact one-line-per-pass summary for logs / test failure output.

class PassSnapshot

One completed pass. dynamic fields sum the 4 light slots (RGBA); static fields sum the single RGB. NOTE: kind is stored as a plain int (a Kind value). GDScript inner classes cannot see the outer class's Kind enum unqualified, so the default is the literal 0 (== Kind.DIRECT) and the name lookup lives in the outer class's static kind_name().

Properties

TypeNameDefault
intindex0
intkind0
intpatch_count0
intprobe_count0
floatpatch_dynamic_radiosity_total0.0
intpatch_dynamic_radiosity_count0
floatpatch_dynamic_unshot_total0.0
intpatch_dynamic_unshot_count0
floatpatch_static_radiosity_total0.0
intpatch_static_radiosity_count0
floatpatch_static_unshot_total0.0
intpatch_static_unshot_count0
floatprobe_dynamic_radiosity_total0.0
intprobe_dynamic_radiosity_count0
floatprobe_dynamic_unshot_total0.0
intprobe_dynamic_unshot_count0
floatprobe_static_radiosity_total0.0
intprobe_static_radiosity_count0
floatprobe_static_unshot_total0.0
intprobe_static_unshot_count0
intfaces_lit0
PackedInt32Arraydebug_countersPackedInt32Array()

Property descriptions

index

var index: int = 0

Undocumented.

kind

var kind: int = 0

Undocumented.

patch_count

var patch_count: int = 0

Undocumented.

probe_count

var probe_count: int = 0

Undocumented.

patch_dynamic_radiosity_total

var patch_dynamic_radiosity_total: float = 0.0

Undocumented.

patch_dynamic_radiosity_count

var patch_dynamic_radiosity_count: int = 0

Undocumented.

patch_dynamic_unshot_total

var patch_dynamic_unshot_total: float = 0.0

Undocumented.

patch_dynamic_unshot_count

var patch_dynamic_unshot_count: int = 0

Undocumented.

patch_static_radiosity_total

var patch_static_radiosity_total: float = 0.0

Undocumented.

patch_static_radiosity_count

var patch_static_radiosity_count: int = 0

Undocumented.

patch_static_unshot_total

var patch_static_unshot_total: float = 0.0

Undocumented.

patch_static_unshot_count

var patch_static_unshot_count: int = 0

Undocumented.

probe_dynamic_radiosity_total

var probe_dynamic_radiosity_total: float = 0.0

Undocumented.

probe_dynamic_radiosity_count

var probe_dynamic_radiosity_count: int = 0

Undocumented.

probe_dynamic_unshot_total

var probe_dynamic_unshot_total: float = 0.0

Undocumented.

probe_dynamic_unshot_count

var probe_dynamic_unshot_count: int = 0

Undocumented.

probe_static_radiosity_total

var probe_static_radiosity_total: float = 0.0

Undocumented.

probe_static_radiosity_count

var probe_static_radiosity_count: int = 0

Undocumented.

probe_static_unshot_total

var probe_static_unshot_total: float = 0.0

Undocumented.

probe_static_unshot_count

var probe_static_unshot_count: int = 0

Undocumented.

faces_lit

var faces_lit: int = 0

Undocumented.

debug_counters

var debug_counters: PackedInt32Array = PackedInt32Array()

Raw GPU atomic counters for this pass (the dynamic transfer breakdown). Empty for pass 0 and for the chunked distribute pass, which don't surface them.

Hammerite 1.0 · built from a6dd634, 2026-10-10