Skip to content

Commit dbb1343

Browse files
committed
Don't render atmospheres for stars
1 parent dc6ef79 commit dbb1343

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/celengine/render.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,25 +3029,7 @@ void Renderer::renderStar(const Star& star,
30293029
rp.radius = star.getRadius();
30303030
rp.semiAxes = star.getEllipsoidSemiAxes();
30313031
rp.geometry = star.getGeometry();
3032-
3033-
Atmosphere atmosphere;
3034-
3035-
// Use atmosphere effect to give stars a fuzzy fringe
3036-
if (star.hasCorona() && rp.geometry == InvalidResource)
3037-
{
3038-
Color atmColor(color.red() * 0.5f, color.green() * 0.5f, color.blue() * 0.5f);
3039-
atmosphere.height = radius * CoronaHeight;
3040-
atmosphere.lowerColor = atmColor;
3041-
atmosphere.upperColor = atmColor;
3042-
atmosphere.skyColor = atmColor;
3043-
3044-
rp.atmosphere = &atmosphere;
3045-
}
3046-
else
3047-
{
3048-
rp.atmosphere = nullptr;
3049-
}
3050-
3032+
rp.atmosphere = nullptr;
30513033
rp.orientation = star.getRotationModel()->orientationAtTime(observer.getTime()).cast<float>();
30523034

30533035
renderObject(pos, distance, observer,

0 commit comments

Comments
 (0)