MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / iModelInit

Function iModelInit

src/SB/Core/gc/iModel.cpp:55–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void iModelInit()
56{
57 RwRGBAReal black = { 0.0f, 0.0f, 0.0f, 0.0f };
58 if (sEmptyDirectionalLight[0] == 0)
59 {
60 for (int i = 0; i < (int)(sizeof(sEmptyDirectionalLight) / sizeof(RpLight*)); i++)
61 {
62 sEmptyDirectionalLight[i] = RpLightCreate(rpLIGHTDIRECTIONAL);
63 RpLightSetColor(sEmptyDirectionalLight[i], &black);
64 RwFrame* frame = RwFrameCreate();
65 _rwObjectHasFrameSetFrame(sEmptyDirectionalLight[i], frame);
66 }
67 sEmptyAmbientLight = RpLightCreate(rpLIGHTAMBIENT);
68 RpLightSetColor(sEmptyAmbientLight, &black); // Redundant sEmptyAmbientLight load here.
69 }
70}
71
72RpAtomic* FindAndInstanceAtomicCallback(RpAtomic* model, void* data)
73{

Callers 1

xModelInitFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected