public interface LightFilter
|Modifier and Type||Method and Description|
Determine which lights on the
Sets the camera for which future filtering is to be done against in
void setCamera(Camera camera)
camera- The camera to perform light filtering against.
void filterLights(Geometry geometry, LightList filteredLightList)
world light listare to be rendered.
The simplest implementation (e.g. one that performs no filtering) would
simply copy the contents of
An advanced implementation would determine if the light intersects
geometry's bounding volume and if
the light intersects the frustum of the camera set in
setCamera(com.jme3.renderer.Camera) as well as sort the lights
according to some "influence" criteria - this will then provide
an optimal set of lights that should be used for rendering.
geometry- The geometry for which the light filtering is performed.
filteredLightList- The results are to be stored here.