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

Function iModelResetMaterial

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

Source from the content-addressed store, hash-verified

898 RwV3dTransformPoints((RwV3d*)dest, (RwV3d*)&tag->v, 1, mat);
899 }
900}
901
902void iModelTagEval(RpAtomic* model, const xModelTagWithNormal* tag, RwMatrix* mat, xVec3* dest,
903 xVec3* normal)
904{
905 iModelTagEval(model, tag, mat, dest);
906 if (tag->wt[0])
907 {
908 RpGeometry* geom = RpAtomicGetGeometry(model);
909 RpSkin* skin = RpSkinGeometryGetSkin(geom);
910 const RwMatrix* skinmat = RpSkinGetSkinToBoneMatrices(skin);
911 SkinNormals(normal, &tag->normal, mat, skinmat, tag->wt, &tag->matidx, 1);
912 }
913 else
914 {
915 RwV3dTransformPoints((RwV3d*)normal, (RwV3d*)&tag->normal, 1, mat);
916 }
917}
918

Callers 5

render_ghostFunction · 0.50
effects_renderMethod · 0.50
RenderGlobsMethod · 0.50
xModelResetMaterialFunction · 0.50
xEntRestorePipelineFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected