diff -r 6493fb65f0b1 -r 320d5d466864 ccdemos/spheres_shadow.cc --- 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);