I was trying to make a planetary atmosphere shader (external view) for cycles which does not require a separate render layer and which doesn’t rely on one light source only. What I was trying to achieve is:
- A smooth fall-off towards the border
- A smoooth fall-off towards the center
- Black for the unilluminated areas
- A subtile color shift towards the unilluminated areas.
I managed to get all points solved exept for the last one, which would require information about the angle between the light ray from the emitter to object and the object to the camera. Is there a way to get this angle from any node?