ccdemos/spheres_shadow.cc
branchpyrit
changeset 47 320d5d466864
parent 40 929aad02c5f2
child 48 a4913301c626
--- a/ccdemos/spheres_shadow.cc	Wed Mar 26 00:52:27 2008 +0100
+++ b/ccdemos/spheres_shadow.cc	Wed Mar 26 14:29:21 2008 +0100
@@ -112,7 +112,9 @@
 		pyrit_verbosity = 2;
 		Float *fdata = (Float *) malloc(w*h*3*sizeof(Float));
 		rt.setOversample(2);
-		rt.render(w, h, fdata);
+		DefaultSampler sampler(fdata, w, h);
+		rt.setSampler(&sampler);
+		rt.render();
 
 		struct image *img;
 		new_image(&img, w, h, 3);