Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Helicopters cast a proper shadow now (moving_rotor not casting a shad…
- Loading branch information
Showing
with
4 additions
and
3 deletions.
-
+4
−3
VCS PC/RealTimeShadowMgr.cpp
There are no files selected for viewing
|
|
@@ -26,16 +26,17 @@ WRAPPER void CRealTimeShadowManager::Update() { EAXJMP(0x706AB0); } |
|
RpAtomic* ShadowCameraRenderCB_Vehicle(RpAtomic* pAtomic, void* pData)
|
|
RpAtomic* ShadowCameraRenderCB_Vehicle(RpAtomic* pAtomic, void* pData)
|
|
{
|
|
{
|
|
// Check if to render this basing on settings
|
|
// Check if to render this basing on settings
|
|
|
|
const char* pFrameName = GetFrameNodeName(RpAtomicGetFrame(pAtomic));
|
|
if ( reinterpret_cast<bool>(pData) )
|
|
if ( reinterpret_cast<bool>(pData) )
|
|
{
|
|
{
|
|
// Reject if it's a LOD
|
|
// Reject if it's a LOD or moving rotor
|
|
if ( strstr(GetFrameNodeName(RpAtomicGetFrame(pAtomic)), "_vlo") )
|
|
if ( strstr(pFrameName, "_vlo") || !strncmp(pFrameName, "moving_rotor", 12) )
|
|
return pAtomic;
|
|
return pAtomic;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
// Reject if it's not a LOD
|
|
// Reject if it's not a LOD
|
|
if ( !strstr(GetFrameNodeName(RpAtomicGetFrame(pAtomic)), "_vlo") )
|
|
if ( !strstr(pFrameName, "_vlo") )
|
|
return pAtomic;
|
|
return pAtomic;
|
|
}
|
|
}
|
|
|
|
|
|
|
|