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

Function iModelMaterialMul

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

TODO: once again, fix after RW implementation

Source from the content-addressed store, hash-verified

973 }
974 if (sMaterialFlags & 0x1)
975 {
976 RwRGBA newColor = *RpMaterialGetColor(material);
977 newColor.alpha = sMaterialAlpha[sMaterialIdx];
978 RpMaterialSetColor(material, &newColor);
979 }
980 }
981
982 if (sMaterialFlags & 0x4)
983 {
984 RpMaterialSetTexture(material, sMaterialTexture[sMaterialIdx]);
985 }
986
987 sMaterialIdx++;
988 return material;
989}
990
991void iModelResetMaterial(RpAtomic* model)
992{
993 RpAtomic* material = sLastMaterial;
994 RpGeometry* geom;
995
996 if (model != material)
997 {
998 sMaterialFlags = 0;

Callers 2

RenderGlobsMethod · 0.50
xModelMaterialMulFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected