demos/triangles_sphere.py
branchpyrit
changeset 95 ca7d4c665531
parent 90 f6a72eb99631
equal deleted inserted replaced
94:4c8abb8977dc 95:ca7d4c665531
     4 from objreader import LoadWavefrontObjFile
     4 from objreader import LoadWavefrontObjFile
     5 
     5 
     6 rt = Raytracer()
     6 rt = Raytracer()
     7 top = KdTree()
     7 top = KdTree()
     8 rt.setTop(top)
     8 rt.setTop(top)
     9 rt.setCamera(Camera())
     9 rt.setCamera(Camera(eye=(0,0,6)))
    10 
    10 
    11 light1 = Light(position=(0.0, 2.0, 6.0), colour=(0.9, 0.3, 0.6))
    11 light1 = Light(position=(0.0, 2.0, 6.0), colour=(0.9, 0.3, 0.6))
    12 light1.castShadows(False);
    12 light1.castShadows(False);
    13 rt.addLight(light1)
    13 rt.addLight(light1)
    14 
    14