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

Function iModelSetMaterialTexture

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

Source from the content-addressed store, hash-verified

925{
926 const RwRGBA* col = RpMaterialGetColor(material);
927 sMaterialAlpha[sMaterialIdx++] = col->alpha;
928
929 RwRGBA new_col = *col;
930 new_col.alpha = *(U8*)data;
931
932 RpMaterialSetColor(material, &new_col);
933
934 return material;
935}
936
937// sda scheduling
938void iModelSetMaterialAlpha(RpAtomic* model, U8 alpha)
939{
940 RpGeometry* geom = RpAtomicGetGeometry(model);
941
942 if (model != sLastMaterial)

Callers 1

xEntSetupPipelineFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected