equal
deleted
inserted
replaced
267 /* render image */ |
267 /* render image */ |
268 if (argc == 2 && !strcmp(argv[1], "-r")) |
268 if (argc == 2 && !strcmp(argv[1], "-r")) |
269 { |
269 { |
270 pyrit_verbosity = 2; |
270 pyrit_verbosity = 2; |
271 Float *fdata = (Float *) malloc(w*h*3*sizeof(Float)); |
271 Float *fdata = (Float *) malloc(w*h*3*sizeof(Float)); |
272 rt.ambientocclusion(300, 5.0, 0.5); |
272 rt.ambientOcclusion(300, 5.0, 0.5); |
273 DefaultSampler sampler(fdata, w, h); |
273 DefaultSampler sampler(fdata, w, h); |
274 sampler.setOversample(2); |
274 sampler.setOversample(2); |
275 sampler.setSubsample(1); |
275 sampler.setSubsample(1); |
276 rt.setSampler(&sampler); |
276 rt.setSampler(&sampler); |
277 rt.render(); |
277 rt.render(); |