Procedural city lights shader

Hello everyone, this is a shader aimed at generating city lights in Cycles.
The picture below is an example of what can be done.


To use it, first grab the .blend file containing the shader: City Lights Shader.blend (679 KB)
In your project, add a sphere around your planet, make it a tiny bit bigger than the planet itself and add a material to it. Then, append the shader with the following path: Append > City Lights Shader.blend > Material > CityLightsMaterial. Finally, in the Node Editor, add the shader with the following path: Add > Group > City Lights.

The following zip file contains the complete manual, as well as the .blend file with the example and the above picture in high res: City Lights Shader (1.15 MB)

Happy blending !