Source:
http://code.google.com/p/box2dlights/
Applet:
http://dl.dropbox.com/u/10960490/Uusi%20kansio/index.html
http://dl.dropbox.com/u/10960490/box2dlightsdownsampled.png
I writed library for dynamic 2d soft lighting. Its use box2d geometry and raycasting and create light meshes from collision data.
Library work with gles 1.1 or gles 2.0 automatically depending on context.
Rendering flow go something like this.
normal rendering/spriteBatch etc
rayHandler.setCombinedMatrix(camera.combined);
rayHandler.updateAndRender()
ui stuff
Nothing special is needed it just works.
When creating a Rayhandler user just need to give box2d World
rayHandler = new RayHandler(world);
Lights can be created easily like this:
new PointLight(rayHandler, RAYS_NUM, new Color(1,1,1,1), lightDistance, x, y);
After light is created rayHandler manage, update and render it so nothing special is needed from user.
Source is licensed with apache 2.0 so its compatible with libgdx.
Public method are all java docced and at google code wiki there are more information.
[quote]FEATURES:
Gaussian blurred light maps
Point light
Cone Light
Directional Light
Shadows
Dynamic/static/xray light
Culling
Handler class to do all the work.
[/quote]
On android 8 dynamic lights and two gaussian blur pass and shadows take about 5ms total.
I have used my library for Boxtrix, Lonely miner and one yet not published project with success and there are several developers currently using library for their games. Intergration for any box2d based game should take about 5minutes at most.