ccdemos/textures.cc
branchpyrit
changeset 47 320d5d466864
parent 43 0b8b968b42d1
child 48 a4913301c626
equal deleted inserted replaced
46:6493fb65f0b1 47:320d5d466864
   277 		pyrit_verbosity = 2;
   277 		pyrit_verbosity = 2;
   278 		Float *fdata = (Float *) malloc(w*h*3*sizeof(Float));
   278 		Float *fdata = (Float *) malloc(w*h*3*sizeof(Float));
   279 		rt.setOversample(2);
   279 		rt.setOversample(2);
   280 		rt.setSubsample(1);
   280 		rt.setSubsample(1);
   281 		rt.ambientocclusion(300, 5.0, 0.5);
   281 		rt.ambientocclusion(300, 5.0, 0.5);
   282 		rt.render(w, h, fdata);
   282 		DefaultSampler sampler(fdata, w, h);
       
   283 		rt.setSampler(&sampler);
       
   284 		rt.render();
   283 
   285 
   284 		struct image *img;
   286 		struct image *img;
   285 		new_image(&img, w, h, 3);
   287 		new_image(&img, w, h, 3);
   286 
   288 
   287 		Float *fd = fdata;
   289 		Float *fd = fdata;