278279280281282283284285286
clearLights(); groundBody.setActive(false); sunDirection = MathUtils.random(0f, 360f); DirectionalLight light = new DirectionalLight( rayHandler, 4 * RAYS_PER_BALL, null, sunDirection); lights.add(light); }