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

Function xFXAtomicEnvMapSetup

src/SB/Core/x/xFX.cpp:415–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415RpAtomic* xFXAtomicEnvMapSetup(RpAtomic* atomic, U32 aid, F32 shininess)
416{
417 void* asset = xSTFindAsset(aid, NULL);
418 if (asset)
419 {
420 AtomicSetEnvMap(atomic, asset);
421 F32 oldShininess = EnvMapShininess;
422 EnvMapShininess = shininess;
423 AtomicSetShininess(atomic, NULL);
424 EnvMapShininess = oldShininess;
425 RpSkin* skin = RpSkinGeometryGetSkin(atomic->geometry);
426 if (skin)
427 {
428 RpSkinAtomicSetType(atomic, rpSKINTYPEMATFX);
429 }
430 return atomic;
431 }
432 return NULL;
433}
434
435void xFXAuraAdd(void*, xVec3*, iColor_tag*, F32)
436{

Callers 5

xFXShinyRenderFunction · 0.70
xFXBubbleRenderFunction · 0.70
NPC_BubBud_RenderCBFunction · 0.50
custom_bubble_renderFunction · 0.50
zEntPickupInitFunction · 0.50

Calls 3

AtomicSetEnvMapFunction · 0.85
AtomicSetShininessFunction · 0.85
xSTFindAssetFunction · 0.70

Tested by

no test coverage detected