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

Function zNPCBubbleBuddy_AlphaUpdate

src/SB/Game/zNPCTypeVillager.cpp:2192–2197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2190}
2191
2192void zNPCBubbleBuddy_AlphaUpdate(F32 dt)
2193{
2194 static F32 tmr_pulseAlpha = 0.0f; // non-matching: stfs too late
2195 F32 angle = NPCC_TmrCycle(&tmr_pulseAlpha, dt, 1.5f) * PI;
2196 zNPCBubbleBuddy::alf_currBubBud = LERP(MAX(0.0f, MIN(xabs(isin(angle)), 1.0f)), 0.5f, 0.5f);
2197}
2198
2199static U32 bb_env_texture = 0;
2200static U32 bb_fresnel_texture = 0;

Callers 1

Calls 3

LERPFunction · 0.85
isinFunction · 0.85
NPCC_TmrCycleFunction · 0.70

Tested by

no test coverage detected