ccdemos/textures.cc
branchpyrit
changeset 75 20dee9819b17
parent 72 7c3f38dff082
child 79 062b1c4143f7
equal deleted inserted replaced
74:09aedbf5f95f 75:20dee9819b17
   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();