Light culling is now available and enabled by default

In the latest jMonkeyEngine git repository there’s support for light culling. Prior to a light being rendered, it is checked to ensure it will have an influence on the scene by testing if its influence area intersects both the model bounding volume and the camera frustum.

You can see it working by running TestJaime or TestManyLights examples, depending on where the camera or model is, the number of objects rendered will differ which is due to each model being rendered with different light counts.

11 Likes

Ah nice :slight_smile: Have been waiting for this

Just added support for frustum v. spot light as well, so all light type combinations are supported now.
Please report if there are any issues.

4 Likes

Pretty cool!
Nice work Kirill

Very nice! +1’ed :smiley: