Package com.jme3.light
Class NullLightFilter
java.lang.Object
com.jme3.light.NullLightFilter
- All Implemented Interfaces:
LightFilter
NullLightFilter does nothing. Used when you want
to disable the light filter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilterLights(Geometry geometry, LightList filteredLightList) Determine which lights on theworld light listare to be rendered.voidSets the camera for which future filtering is to be done against inLightFilter.filterLights(com.jme3.scene.Geometry, com.jme3.light.LightList).
-
Constructor Details
-
NullLightFilter
public NullLightFilter()
-
-
Method Details
-
setCamera
Description copied from interface:LightFilterSets the camera for which future filtering is to be done against inLightFilter.filterLights(com.jme3.scene.Geometry, com.jme3.light.LightList).- Specified by:
setCamerain interfaceLightFilter- Parameters:
camera- The camera to perform light filtering against.
-
filterLights
Description copied from interface:LightFilterDetermine which lights on theworld light listare to be rendered.The simplest implementation (e.g. one that performs no filtering) would simply copy the contents of
Spatial.getWorldLightList()tofilteredLightList.An advanced implementation would determine if the light intersects the
geometry's bounding volumeand if the light intersects the frustum of the camera set inLightFilter.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.- Specified by:
filterLightsin interfaceLightFilter- Parameters:
geometry- The geometry for which the light filtering is performed.filteredLightList- The results are to be stored here.
-