http://dl.dropbox.com/u/10960490/Uusi%2 ... index.html

I write 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 program.
Rendering flow should go something like this.
- Code: Select all
normal rendering/spriteBatch etc
rayHandler.updateAndRender()
ui stuff
Nothing special is needed it just works.
When creating a Rayhandler user just need to give box2d World and ortho camera
- Code: Select all
rayHandler = new RayHandler(world, camera);
Lights can be created easily like this:
- Code: Select all
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 lisenced with apache 2.0 so its compatible with libgdx.
http://code.google.com/p/box2dlights/