demos/spheres_shadow.py
branchpyrit
changeset 95 ca7d4c665531
parent 90 f6a72eb99631
child 96 9eb71e76c7fd
--- 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')