# Setup a camera to view the scene # This needs an eye position, look-at point, # up direction, field-of-view in the y-axis, # as well as an image resolution camera eye 0 5 5 at 0 4 4 up 0 1 0 fovy 60.0 res 512 512 end # Defines a light source for the scene # A point light requires only a color and # a position light point pos -5 5 2 color 1 0.6 1 end # Materials defined globally like this may be # shared by multiple objects material lambertian yellow color 1.0 1.0 0.0 end # Defines a number of objects. The inputs for # each object depends on the type of object object sphere redSphere center 0 1 0 radius 1 material lambertian red color 1.0 0.0 0.0 end end object sphere greenSphere center 3 1 -3 radius 3 material lambertian green color 0.0 1.0 0.0 end end # Notice that using a globally-defined material # simply requires "material " object sphere yellowSphere center -2 -3 2 radius 2 material yellow end # If you forget to define a material for your object, # it will use (a rather boring) default. object plane bluePlane normal 0 1 0 point 0 -2 0 material lambertian blue color 0.0 0.0 1.0 end end object plane yellowPlane normal 0 0 1 point 0 0 -7 material yellow end