mirror of
https://github.com/halpz/re3.git
synced 2025-07-18 01:38:10 +00:00
implemented skinned peds, no cutscene hands yet
This commit is contained in:
@ -543,6 +543,21 @@ CVisibilityPlugins::RenderPedHiDetailCB(RpAtomic *atomic)
|
||||
return atomic;
|
||||
}
|
||||
|
||||
// This is needed for peds with only one clump, i.e. skinned models
|
||||
// strangely even the xbox version has no such thing
|
||||
RpAtomic*
|
||||
CVisibilityPlugins::RenderPedCB(RpAtomic *atomic)
|
||||
{
|
||||
int32 alpha;
|
||||
|
||||
alpha = GetClumpAlpha(RpAtomicGetClump(atomic));
|
||||
if(alpha == 255)
|
||||
AtomicDefaultRenderCallBack(atomic);
|
||||
else
|
||||
RenderAlphaAtomic(atomic, alpha);
|
||||
return atomic;
|
||||
}
|
||||
|
||||
float
|
||||
CVisibilityPlugins::GetDistanceSquaredFromCamera(RwFrame *frame)
|
||||
{
|
||||
|
Reference in New Issue
Block a user