ccdemos/spheres_shadow.cc
branchpyrit
changeset 16 20bceb605f48
parent 15 a0a3e334744f
child 19 4e0955fca797
equal deleted inserted replaced
15:a0a3e334744f 16:20bceb605f48
     2 #include "image.h"
     2 #include "image.h"
     3 
     3 
     4 int main()
     4 int main()
     5 {
     5 {
     6 	Raytracer rt;
     6 	Raytracer rt;
       
     7 	rt.setThreads(1);
       
     8 
     7 	Light light1(Vector3(0.0, 5.0, 5.0), Colour(0.7, 0.3, 0.6));
     9 	Light light1(Vector3(0.0, 5.0, 5.0), Colour(0.7, 0.3, 0.6));
     8 	rt.addlight(&light1);
    10 	rt.addlight(&light1);
     9 
    11 
    10 	Light light2(Vector3(-2.0, 10.0, 2.0), Colour(0.4, 0.6, 0.3));
    12 	Light light2(Vector3(-2.0, 10.0, 2.0), Colour(0.4, 0.6, 0.3));
    11 	rt.addlight(&light2);
    13 	rt.addlight(&light2);