Remove bottom size limit of eclipsing satelites.
parent
b4ccb15c93
commit
e8600c6d9a
|
@ -5019,12 +5019,10 @@ bool Renderer::testEclipse(const Body& receiver,
|
||||||
LightingState::EclipseShadowVector& shadows = *lightingState.shadows[lightIndex];
|
LightingState::EclipseShadowVector& shadows = *lightingState.shadows[lightIndex];
|
||||||
bool isReceiverShadowed = false;
|
bool isReceiverShadowed = false;
|
||||||
|
|
||||||
// Ignore situations where the shadow casting body is much smaller than
|
// 15.11.2018: Eclipsing body size compared to eclipsed body is now always relevant.
|
||||||
// the receiver, as these shadows aren't likely to be relevant. Also,
|
// Ignore eclipses where the caster is not an ellipsoid, since we can't
|
||||||
// ignore eclipses where the caster is not an ellipsoid, since we can't
|
|
||||||
// generate correct shadows in this case.
|
// generate correct shadows in this case.
|
||||||
if (caster.getRadius() >= receiver.getRadius() * MinRelativeOccluderRadius &&
|
if (caster.hasVisibleGeometry() &&
|
||||||
caster.hasVisibleGeometry() &&
|
|
||||||
caster.extant(now) &&
|
caster.extant(now) &&
|
||||||
caster.isEllipsoid())
|
caster.isEllipsoid())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue