Skip to content

Commit ada9613

Browse files
committed
Don't render atmospheres for stars
1 parent 6d1b999 commit ada9613

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
@@ -3026,25 +3026,7 @@ void Renderer::renderStar(const Star& star,
30263026
rp.radius = star.getRadius();
30273027
rp.semiAxes = star.getEllipsoidSemiAxes();
30283028
rp.geometry = star.getGeometry();
3029-
3030-
Atmosphere atmosphere;
3031-
3032-
// Use atmosphere effect to give stars a fuzzy fringe
3033-
if (star.hasCorona() && rp.geometry == InvalidResource)
3034-
{
3035-
Color atmColor(color.red() * 0.5f, color.green() * 0.5f, color.blue() * 0.5f);
3036-
atmosphere.height = radius * CoronaHeight;
3037-
atmosphere.lowerColor = atmColor;
3038-
atmosphere.upperColor = atmColor;
3039-
atmosphere.skyColor = atmColor;
3040-
3041-
rp.atmosphere = &atmosphere;
3042-
}
3043-
else
3044-
{
3045-
rp.atmosphere = nullptr;
3046-
}
3047-
3029+
rp.atmosphere = nullptr;
30483030
rp.orientation = star.getRotationModel()->orientationAtTime(observer.getTime()).cast<float>();
30493031

30503032
renderObject(pos, distance, observer,

0 commit comments

Comments
 (0)