InitShadows
function · lighting · primitive
- Address
0x6d8070· 291 bytes, up to0x6d8192- Signature
void __cdecl (void)- Meaning
- Loads the blob texture, builds the two ramp textures and registers the shadow settings
- Confidence
- inferred
- Finding
- lighting/shadows#shadow-textures
Finding: Shadow textures in lighting: shadows
The unit setup loads Textures\ShadowBlob.blp and builds two 64 × 8 procedural textures; the
unit shutdown releases all three. The first is white with a computed alpha; the second is a grey
ramp across the 64 columns: with f = 12·i/63, the darkness is f/2 below 2, 1 from 2 to 10 and
(12 − f)/2 above, and a texel's alpha is 0 where it is white.
The derivation is in the doc.
Callers 1
- CGUnit_C::Initialize objectlayer
Callees 5
- CStatus::~CStatus client
- TextureCreate gx
- CGxTexFlags::CGxTexFlags gx
- GxTexCreate2D gx
- CVar::Register cvar
Calls and jumps by a bare address, from tables/calls.tsv.