summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-08-03 09:56:22 -0600
committerTavian Barnes <tavianator@gmail.com>2011-08-03 09:56:22 -0600
commitd97c901550b5908ce849fac9f7ac313be3cf7df5 (patch)
tree93acec1b5e2b066d9717fbd41746d32707f7cde2 /dimension
parentdc2aa37ea8bfc55dffd019bc95e3682af2b767a5 (diff)
downloaddimension-d97c901550b5908ce849fac9f7ac313be3cf7df5.tar.xz
Clean up lights in complex test.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/tests/complex.dmnsn14
1 files changed, 5 insertions, 9 deletions
diff --git a/dimension/tests/complex.dmnsn b/dimension/tests/complex.dmnsn
index 6aa65d1..09499b3 100644
--- a/dimension/tests/complex.dmnsn
+++ b/dimension/tests/complex.dmnsn
@@ -22,16 +22,12 @@ camera = PerspectiveCamera(location = (3, 6, -11),
background = 0.5*Color(0.73, 0.90, 0.97)
-light_color = 0.25*White
-lights.append(PointLight(location = (-3, 0, -5), color = light_color))
-lights.append(PointLight(location = (-1, 0, -5), color = light_color))
-lights.append(PointLight(location = ( 1, 0, -5), color = light_color))
-lights.append(PointLight(location = ( 3, 0, -5), color = light_color))
+def make_light(x, y, z):
+ return PointLight(location = (x, y, z), color = 1/4*White)
-lights.append(PointLight(location = (-3, 5, -5), color = light_color))
-lights.append(PointLight(location = (-1, 5, -5), color = light_color))
-lights.append(PointLight(location = ( 1, 5, -5), color = light_color))
-lights.append(PointLight(location = ( 3, 5, -5), color = light_color))
+for x in range(-3, 4, 2):
+ for y in range(0, 6, 5):
+ lights.append(make_light(x, y, -5))
objects.append(
Plane(