light: minor non-functional changes

experimental
Kirill Vainer 9 years ago
parent 31383778d9
commit 6238088688
  1. 2
      jme3-core/src/main/java/com/jme3/light/DefaultLightFilter.java
  2. 2
      jme3-core/src/main/java/com/jme3/light/Light.java

@ -44,6 +44,7 @@ public final class DefaultLightFilter implements LightFilter {
private Camera camera; private Camera camera;
private final HashSet<Light> processedLights = new HashSet<Light>(); private final HashSet<Light> processedLights = new HashSet<Light>();
@Override
public void setCamera(Camera camera) { public void setCamera(Camera camera) {
this.camera = camera; this.camera = camera;
for (Light light : processedLights) { for (Light light : processedLights) {
@ -51,6 +52,7 @@ public final class DefaultLightFilter implements LightFilter {
} }
} }
@Override
public void filterLights(Geometry geometry, LightList filteredLightList) { public void filterLights(Geometry geometry, LightList filteredLightList) {
TempVars vars = TempVars.get(); TempVars vars = TempVars.get();
try { try {

@ -197,7 +197,7 @@ public abstract class Light implements Savable, Cloneable {
public abstract boolean intersectsBox(BoundingBox box, TempVars vars); public abstract boolean intersectsBox(BoundingBox box, TempVars vars);
/** /**
* Determines if the lgiht intersects with the given camera frustum. * Determines if the light intersects with the given camera frustum.
* *
* For non-local lights, such as {@link DirectionalLight directional lights}, * For non-local lights, such as {@link DirectionalLight directional lights},
* {@link AmbientLight ambient lights}, or {@link PointLight point lights} * {@link AmbientLight ambient lights}, or {@link PointLight point lights}

Loading…
Cancel
Save