demos/triangles_monkey.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 light = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.6))
    11 light = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.6))
    12 rt.addLight(light)
    12 rt.addLight(light)
    13 
    13 
    14 mat = Material(colour=(0.9, 0.9, 0.9))
    14 mat = Material(colour=(0.9, 0.9, 0.9))