Add atmosphere height to culling radius
parent
e686619f2e
commit
5f947cfa2c
|
@ -1174,15 +1174,12 @@ void Body::recomputeCullingRadius()
|
|||
{
|
||||
float r = getBoundingRadius();
|
||||
|
||||
if (atmosphere)
|
||||
r += max(atmosphere->height, atmosphere->cloudHeight);
|
||||
|
||||
if (rings)
|
||||
r = max(r, rings->outerRadius);
|
||||
|
||||
if (atmosphere)
|
||||
{
|
||||
r = max(r, atmosphere->height);
|
||||
r = max(r, atmosphere->cloudHeight);
|
||||
}
|
||||
|
||||
if (referenceMarks)
|
||||
{
|
||||
for (const auto rm : *referenceMarks)
|
||||
|
|
Loading…
Reference in New Issue