15 #light2 = SphericalLight(position=(-2.0, 5.0, 1.0), radius=3.0, colour=(0.7, 1.0, 0.3)) |
15 #light2 = SphericalLight(position=(-2.0, 5.0, 1.0), radius=3.0, colour=(0.7, 1.0, 0.3)) |
16 light2 = Light(position=(-2.0, -5.0, 1.0), colour=(0.7, 1.0, 0.3)) |
16 light2 = Light(position=(-2.0, -5.0, 1.0), colour=(0.7, 1.0, 0.3)) |
17 rt.addlight(light2) |
17 rt.addlight(light2) |
18 |
18 |
19 mat0 = Material(colour=(0.1, 0.2, 0.9)) |
19 mat0 = Material(colour=(0.1, 0.2, 0.9)) |
20 plane = Plane(normal=(0.0, 1.0, 0.0), d=1.0, material=mat0) |
20 box = Box(L=(-20.0, -1.2, -20.0), H=(20.0, -1.0, 20.0), material=mat0) |
21 rt.addshape(plane) |
21 rt.addshape(box) |
22 |
22 |
23 mat1 = Material(colour=(1.0, 0.2, 0.1)) |
23 mat1 = Material(colour=(1.0, 0.2, 0.1)) |
24 bigsphere = Sphere(centre=(2.0, 2.0, 5.0), radius=2.5, material=mat1) |
24 bigsphere = Sphere(centre=(2.0, 2.0, 5.0), radius=2.5, material=mat1) |
25 # reflection=0.6) |
25 # reflection=0.6) |
26 rt.addshape(bigsphere) |
26 rt.addshape(bigsphere) |