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
| Type | Name | Default |
|---|---|---|
HammeriteLightmapBakeReportPassSnapshot[] | passes |
Methods
| Returns | Method |
|---|---|
HammeriteLightmapBakeReportPassSnapshot[] | all_of_kind(kind: int) |
String | kind_name(k: int) static |
HammeriteLightmapBakeReportPassSnapshot | last() |
HammeriteLightmapBakeReportPassSnapshot | of_kind(kind: int) |
HammeriteLightmapBakeReportPassSnapshot | snapshot(index: int) |
String | to_text() |
Enumerations
enum Kind
| Value | Name | Description |
|---|---|---|
0 | DIRECT | |
1 | GATHER | |
2 | BOUNCE | |
3 | DISTRIBUTE |
Property descriptions
passes
var passes: HammeriteLightmapBakeReportPassSnapshot[]
Undocumented.
Method descriptions
all_of_kind()
func all_of_kind(kind: int) -> HammeriteLightmapBakeReportPassSnapshot[]
Every snapshot of a given Kind, in pass order.
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).
last()
func last() -> HammeriteLightmapBakeReportPassSnapshot
The last recorded snapshot (the distribute pass, for a bounced bake), or null.
of_kind()
func of_kind(kind: int) -> HammeriteLightmapBakeReportPassSnapshot
The FIRST snapshot of a given Kind, or null. (A multi-bounce bake has several BOUNCE passes.)
snapshot()
func snapshot(index: int) -> HammeriteLightmapBakeReportPassSnapshot
The snapshot for a given pass index, or null.
to_text()
func to_text() -> String
Compact one-line-per-pass summary for logs / test failure output.