From 75791883ec5ac9818a435256e8d90bbeddac8cf4 Mon Sep 17 00:00:00 2001 From: Jan Ivenz Date: Wed, 16 Mar 2016 18:53:03 +0100 Subject: [PATCH] For LightFilter to be implementable frustumCheckNeeded and intersectsFrustum need to be accesible. --- .../src/main/java/com/jme3/light/Light.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/light/Light.java b/jme3-core/src/main/java/com/jme3/light/Light.java index f6ea68045..9836c7db0 100644 --- a/jme3-core/src/main/java/com/jme3/light/Light.java +++ b/jme3-core/src/main/java/com/jme3/light/Light.java @@ -184,6 +184,22 @@ public abstract class Light implements Savable, Cloneable { this.enabled = enabled; } + public boolean isFrustumCheckNeeded() { + return frustumCheckNeeded; + } + + public void setFrustumCheckNeeded(boolean frustumCheckNeeded) { + this.frustumCheckNeeded = frustumCheckNeeded; + } + + public boolean isIntersectsFrustum() { + return intersectsFrustum; + } + + public void setIntersectsFrustum(boolean intersectsFrustum) { + this.intersectsFrustum = intersectsFrustum; + } + /** * Determines if the light intersects with the given bounding box. *