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 |
|---|---|---|
HammeriteLightmapBakeReport.PassSnapshot[] | passes | [] |
Methods
| Returns | Method |
|---|---|
String | kind_name(k: int) static |
HammeriteLightmapBakeReport.PassSnapshot | snapshot(index: int) |
HammeriteLightmapBakeReport.PassSnapshot | of_kind(kind: int) |
HammeriteLightmapBakeReport.PassSnapshot[] | all_of_kind(kind: int) |
HammeriteLightmapBakeReport.PassSnapshot | last() |
String | to_text() |
Enumerations
enum Kind
| Value | Name | Description |
|---|---|---|
0 | DIRECT | |
1 | GATHER | |
2 | BOUNCE | |
3 | DISTRIBUTE |
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
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.