Volumetrics is a library for real-time volumetric lighting effects. It has a  volumetric point light class that creates a simple effect container with a gradient emission pattern. It also has an effect container class that creates a volumetric light effect (also known as crepuscular or “god” rays). This is done in 2D with some bitmap processing of an emission object, and optionally an occlusion object.

Sample

// Create a VolumetricPointLight object, use the grid as the occlusion object.
fx = new VolumetricPointLight(800, 600, grid, [0xc08040, 0x4080c0, 0]);
// You can also specify a single color instead of gradient params, for example:
//   fx = new VolumetricPointLight(800, 600, grid, 0xc08040);
// is equivalent to:
//   fx = new VolumetricPointLight(800, 600, grid, [0xc08040, 0], [1, 1], [0, 255]);

addChild(fx);
// Render on every frame.
fx.startRendering();
Misc . URL.