Don't reset lights that were never checked in light filter

in-pass-shadows
Kirill Vainer 7 years ago
parent 4d60b2df70
commit 2ce2995956
  1. 3
      jme3-core/src/main/java/com/jme3/light/DefaultLightFilter.java

@ -42,7 +42,7 @@ import java.util.HashSet;
public final class DefaultLightFilter implements LightFilter { 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<>();
private final LightProbeBlendingStrategy probeBlendStrat; private final LightProbeBlendingStrategy probeBlendStrat;
public DefaultLightFilter() { public DefaultLightFilter() {
@ -59,6 +59,7 @@ public final class DefaultLightFilter implements LightFilter {
for (Light light : processedLights) { for (Light light : processedLights) {
light.frustumCheckNeeded = true; light.frustumCheckNeeded = true;
} }
processedLights.clear();
} }
@Override @Override

Loading…
Cancel
Save