mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
RenderPedCB from VC
This commit is contained in:
parent
95920d54f2
commit
70a8234dad
@ -557,12 +557,16 @@ RpAtomic*
|
|||||||
CVisibilityPlugins::RenderPedCB(RpAtomic *atomic)
|
CVisibilityPlugins::RenderPedCB(RpAtomic *atomic)
|
||||||
{
|
{
|
||||||
int32 alpha;
|
int32 alpha;
|
||||||
|
RwV3d cam2atm;
|
||||||
|
|
||||||
|
RwV3dSub(&cam2atm, &RwFrameGetLTM(RpAtomicGetFrame(atomic))->pos, ms_pCameraPosn);
|
||||||
|
if(RwV3dDotProduct(&cam2atm, &cam2atm) < ms_pedLod1Dist){
|
||||||
alpha = GetClumpAlpha(RpAtomicGetClump(atomic));
|
alpha = GetClumpAlpha(RpAtomicGetClump(atomic));
|
||||||
if(alpha == 255)
|
if(alpha == 255)
|
||||||
AtomicDefaultRenderCallBack(atomic);
|
AtomicDefaultRenderCallBack(atomic);
|
||||||
else
|
else
|
||||||
RenderAlphaAtomic(atomic, alpha);
|
RenderAlphaAtomic(atomic, alpha);
|
||||||
|
}
|
||||||
return atomic;
|
return atomic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user