mirror of
https://github.com/Relintai/godot-lportal.git
synced 2024-11-11 10:52:09 +01:00
Disable culling of camera DOB
This commit is contained in:
parent
abfc141ce4
commit
7fbf03858e
18
lroom.cpp
18
lroom.cpp
@ -280,15 +280,8 @@ void LRoom::FinalizeVisibility(LRoomManager &manager)
|
||||
const LDob &dob = m_DOBs[n];
|
||||
|
||||
// don't cull the main camera
|
||||
if (dob.m_ID_Spatial == manager.m_ID_camera)
|
||||
continue;
|
||||
|
||||
// Spatial * pSpat = dob.GetSpatial();
|
||||
// if (pSpat)
|
||||
// {
|
||||
// // all should be showing .. this is mostly a no op
|
||||
// pSpat->show();
|
||||
// }
|
||||
//if (dob.m_ID_Spatial == manager.m_ID_camera)
|
||||
// continue;
|
||||
|
||||
VisualInstance * pVI = dob.GetVI();
|
||||
if (pVI)
|
||||
@ -298,6 +291,13 @@ void LRoom::FinalizeVisibility(LRoomManager &manager)
|
||||
{
|
||||
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);
|
||||
// if (dob.m_bVisible)
|
||||
|
Loading…
Reference in New Issue
Block a user