equal
deleted
inserted
replaced
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; |