light: minor non-functional changes

This commit is contained in:
Kirill Vainer 2015-09-13 22:07:34 -04:00
parent 31383778d9
commit 6238088688
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -197,7 +197,7 @@ public abstract class Light implements Savable, Cloneable {
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},
* {@link AmbientLight ambient lights}, or {@link PointLight point lights}