equal
deleted
inserted
replaced
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)) |