We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 268bd13 commit 782bb99Copy full SHA for 782bb99
Dungeoneer/src/com/interrupt/dungeoneer/entities/DynamicLight.java
@@ -2,6 +2,7 @@
2
3
import com.badlogic.gdx.math.Interpolation;
4
import com.badlogic.gdx.math.Vector3;
5
+import com.interrupt.dungeoneer.GameManager;
6
import com.interrupt.dungeoneer.annotations.EditorProperty;
7
import com.interrupt.dungeoneer.game.Game;
8
import com.interrupt.dungeoneer.game.Level;
@@ -153,7 +154,11 @@ else if(lightType == LightType.sin_fast) {
153
154
155
@Override
156
public void tick(Level level, float delta)
- {
157
+ {
158
+ if (!GameManager.renderer.enableLighting) {
159
+ return;
160
+ }
161
+
162
updateLightColor(delta);
163
164
if(isActive && (on || (toggleLerpTime > 0 && toggleLerpTime < 1))) {
0 commit comments