--- a/demos/spheres_shadow.py Thu May 08 09:21:25 2008 +0200
+++ b/demos/spheres_shadow.py Sat May 10 14:29:37 2008 +0200
@@ -5,7 +5,7 @@
rt = Raytracer()
top = KdTree()
rt.setTop(top)
-rt.setCamera(Camera())
+rt.setCamera(Camera(eye=(0,1,6)))
light1 = Light(position=(0.0, 5.0, -5.0), colour=(0.7, 0.3, 0.6))
rt.addLight(light1)
@@ -33,6 +33,7 @@
top.optimize()
sampler = DefaultSampler(800, 600)
+sampler.setOversample(1)
rt.setSampler(sampler)
rt.render()
sampler.getPixmap().writePNG('spheres_shadow.png')