ccdemos/spheres_shadow.cc
branchpyrit
changeset 47 320d5d466864
parent 40 929aad02c5f2
child 48 a4913301c626
equal deleted inserted replaced
46:6493fb65f0b1 47:320d5d466864
   110 	if (argc == 2 && !strcmp(argv[1], "-r"))
   110 	if (argc == 2 && !strcmp(argv[1], "-r"))
   111 	{
   111 	{
   112 		pyrit_verbosity = 2;
   112 		pyrit_verbosity = 2;
   113 		Float *fdata = (Float *) malloc(w*h*3*sizeof(Float));
   113 		Float *fdata = (Float *) malloc(w*h*3*sizeof(Float));
   114 		rt.setOversample(2);
   114 		rt.setOversample(2);
   115 		rt.render(w, h, fdata);
   115 		DefaultSampler sampler(fdata, w, h);
       
   116 		rt.setSampler(&sampler);
       
   117 		rt.render();
   116 
   118 
   117 		struct image *img;
   119 		struct image *img;
   118 		new_image(&img, w, h, 3);
   120 		new_image(&img, w, h, 3);
   119 
   121 
   120 		Float *fd = fdata;
   122 		Float *fd = fdata;