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

Function iModelSetMaterialAlpha

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

TODO: another thing that needs fixed after RW gets implemented

Source from the content-addressed store, hash-verified

846
847// TODO: another thing that needs fixed after RW gets implemented
848void iModelSetMaterialAlpha(RpAtomic* model, U8 alpha)
849{
850 // RpGeometry* geom = RpAtomicGetGeometry(model);
851
852 // if (model != sLastMaterial)
853 // {
854 // sMaterialFlags = 0;
855 // }
856
857 // RpGeometrySetFlags(geom, RpGeometryGetFlags(geom) | rpGEOMETRYMODULATEMATERIALCOLOR);
858
859 // sMaterialIdx = 0;
860
861 // RpGeometryForAllMaterials(geom, iModelSetMaterialAlphaCB, &alpha);
862
863 // sMaterialFlags |= 0x1;
864 // sLastMaterial = model;
865}
866
867static RpMaterial* iModelResetMaterialCB(RpMaterial* material, void* data)
868{

Callers 9

render_ghostFunction · 0.50
NPC_BubBud_RenderCBFunction · 0.50
custom_bubble_renderFunction · 0.50
effects_renderMethod · 0.50
RenderGlobsMethod · 0.50
RenderFrozenPlayerMethod · 0.50
xModelSetMaterialAlphaFunction · 0.50
xFXShinyRenderFunction · 0.50
xFXBubbleRenderFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected