MCPcopy Create free account
hub / github.com/doldecomp/mkdd / setLightMask

Method setLightMask

src/Kaneshige/ExModel.cpp:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void ExModel::setLightMask(J3DModelData *mdlData, GXLightID lightId) {
194 if (mdlData) {
195 for (u16 i = 0; i < mdlData->getMaterialNum(); i++) {
196 J3DMaterial *node = mdlData->getMaterialNodePointer(i);
197 J3DColorBlock *colorBlock = node->getColorBlock();
198 u32 numChans = colorBlock->getColorChanNum();
199
200 for (u32 i = 0; i < numChans; i++) {
201 colorBlock->getColorChan(i)->setLightMask(lightId);
202 }
203 }
204 }
205}
206
207void ExModel::setTevColor(J3DModelData *mdlData, u32 index, const J3DGXColorS10 &color) {
208 if (mdlData) {

Callers 1

updateMethod · 0.45

Calls 4

getColorChanMethod · 0.80
getMaterialNumMethod · 0.45
getColorBlockMethod · 0.45

Tested by

no test coverage detected