src/raytracer.cc
branchpyrit
changeset 72 7c3f38dff082
parent 67 249553e1d4fe
child 75 20dee9819b17
equal deleted inserted replaced
71:4fedf7290929 72:7c3f38dff082
   542 		pthread_join(threads[t], NULL);
   542 		pthread_join(threads[t], NULL);
   543 
   543 
   544 	delete[] sample_queue;
   544 	delete[] sample_queue;
   545 }
   545 }
   546 
   546 
   547 void Raytracer::addlight(Light *light)
       
   548 {
       
   549 	lights.push_back(light);
       
   550 }
       
   551 
       
   552 void Raytracer::ambientocclusion(int samples, Float distance, Float angle)
   547 void Raytracer::ambientocclusion(int samples, Float distance, Float angle)
   553 {
   548 {
   554 	ao_samples = samples;
   549 	ao_samples = samples;
   555 	ao_distance = distance;
   550 	ao_distance = distance;
   556 	ao_angle = angle;
   551 	ao_angle = angle;