strange artifact when rendering volume I'm using a volume scatter shader to render an atmosphere for a planet. To save on time I used a spherical gradient and ran it through a color ramp to get white only on the rims of the sphere. This was then fed into the density value of the volume scatter. When rendered it is behaving as if there are more, smaller spheres of volume inside of it. I'll attach images of my nodes and the results.
Note: The atmosphere and planet are on separate render layers so I can apply a blur to the atmosphere without affecting the planet.


here is the artifact across the entire planet


here is the artifact up close


here is the artifact without the planet


here is the node setup for my atmosphere


here is my compositor node setup

Solution found: Including my directional light in my atmosphere render layer fixed the issue, although I still don't know why. Does anyone know why having them separate would result in that artifact?
The artifact is probably due to the Color Ramp transition method Ease and the fact that your ramp control points are really close to each other. Even though this is inside the planet, it impacts your final render because of the 2 step compositing. I suggest trying B-Spline which should produce smoother transition.



An alternative is to use RGB Curve and play with the curve shape which may give you more control than the ramp for this purpose. Note the Vector Handle vs Auto Handle which impact the shape of the control point, respectively sharp and smooth.