Disable culling of camera DOB

This commit is contained in:
lawnjelly 2019-10-23 10:58:42 +01:00 committed by GitHub
parent abfc141ce4
commit 7fbf03858e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,15 +280,8 @@ void LRoom::FinalizeVisibility(LRoomManager &manager)
const LDob &dob = m_DOBs[n]; const LDob &dob = m_DOBs[n];
// don't cull the main camera // don't cull the main camera
if (dob.m_ID_Spatial == manager.m_ID_camera) //if (dob.m_ID_Spatial == manager.m_ID_camera)
continue; // continue;
// Spatial * pSpat = dob.GetSpatial();
// if (pSpat)
// {
// // all should be showing .. this is mostly a no op
// pSpat->show();
// }
VisualInstance * pVI = dob.GetVI(); VisualInstance * pVI = dob.GetVI();
if (pVI) if (pVI)
@ -298,6 +291,13 @@ void LRoom::FinalizeVisibility(LRoomManager &manager)
{ {
mask = LRoom::LAYER_MASK_CAMERA | LRoom::LAYER_MASK_LIGHT; mask = LRoom::LAYER_MASK_CAMERA | LRoom::LAYER_MASK_LIGHT;
} }
else
{
// special case
// don't cull the main camera
if (dob.m_ID_Spatial == manager.m_ID_camera)
mask = LRoom::LAYER_MASK_CAMERA | LRoom::LAYER_MASK_LIGHT;
}
SoftShow(pVI, mask); SoftShow(pVI, mask);
// if (dob.m_bVisible) // if (dob.m_bVisible)