ccdemos/textures.cc
branchpyrit
changeset 47 320d5d466864
parent 43 0b8b968b42d1
child 48 a4913301c626
--- a/ccdemos/textures.cc	Wed Mar 26 00:52:27 2008 +0100
+++ b/ccdemos/textures.cc	Wed Mar 26 14:29:21 2008 +0100
@@ -279,7 +279,9 @@
 		rt.setOversample(2);
 		rt.setSubsample(1);
 		rt.ambientocclusion(300, 5.0, 0.5);
-		rt.render(w, h, fdata);
+		DefaultSampler sampler(fdata, w, h);
+		rt.setSampler(&sampler);
+		rt.render();
 
 		struct image *img;
 		new_image(&img, w, h, 3);