| 53 | } |
| 54 | |
| 55 | void 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 | |
| 72 | RpAtomic* FindAndInstanceAtomicCallback(RpAtomic* model, void* data) |
| 73 | { |