package pylos.view;

import com.jme3.light.DirectionalLight;
import com.jme3.math.Vector3f;

public class Lights {
	DirectionalLight light;

	public Lights(View view) {
		light = new DirectionalLight();
		light.setDirection((new Vector3f(-0.1f, -0.7f, -1.0f)).normalize());
		view.getRootNode().addLight(light);
	}
}

@@ -36,32 +36,58 @@
 3.light.
-DirectionalLight
+PointLight;%0Aimport com.jme3.math.ColorRGBA
 ;%0Aimport
@@ -139,30 +139,36 @@
  %7B%0A%09
-DirectionalLight light
+final static int radius = 20
 ;%0A%0A%09
@@ -200,40 +200,160 @@
 %7B%0A%09%09
-light = new DirectionalLight(
+PointLight light;%0A%09%09for (int x = 0; x %3C 2; x++) %7B%0A%09%09%09for (int y = 0; y %3C 2; y++) %7B%0A%09%09%09%09light = new PointLight();%0A%09%09%09%09light.setColor(ColorRGBA.White
 );%0A
+%09%09
 %09%09li
@@ -363,19 +363,46 @@
 .set
-Direc
+Radius(radius);%0A%09%09%09%09light.setPosi
 tion(
-(
 new 
@@ -414,44 +414,53 @@
 r3f(
--0.1f, -0.7f, -1.0f)).normalize(
+(x == 0 ? 8 : -8), 4, (y == 0 ? 8 : -8)
 ));%0A
+%09%09
 %09%09vi
@@ -493,13 +493,22 @@
 light);%0A
+%09%09%09%7D%0A%09%09%7D%0A
 %09%7D%0A%7D%0A

add 4 PointLight to have some ambiance