benilla-re systems structs docs

DrawBlobShadow

function · lighting · primitive

Address
0x6d7920 · 1866 bytes, up to 0x6d8069
Signature
void __thiscall (void *this)
Meaning
Projects the blob texture under a model from its bounds and scale
Confidence
inferred
Finding
lighting/shadows#blob-shadow
Test
lighting::shadow_axis_rotate_difftest, lighting::shadow_color_quantize_difftest, lighting::shadow_extent_gate_b_difftest, lighting::shadow_extent_gate_difftest, lighting::shadow_extent_inv_difftest, lighting::shadow_half_diff_difftest, lighting::shadow_inv_len_difftest, lighting::shadow_len_gate_difftest, lighting::shadow_offset_bias_difftest, lighting::shadow_quad_corner_transform_difftest, lighting::shadow_span_diff_difftest, lighting::shadow_vec3_len_scale_difftest

Finding: Blob shadow in lighting: shadows

A doodad model drawn with model flag 0x400 and without 0x8 casts a blob shadow when shadowLOD is 1 and the model is loaded. The shadow is the blob texture projected over the model's first sequence's bounds, each clamped to ±5, stretched down by 5/3 and up by 1 of a scale-derived length, in white with the model's alpha.

The derivation is in the doc.

Callers 1

Callees 27

Calls and jumps by a bare address, from tables/calls.tsv.