SBT-raytracer 1.0 camera { position = (0,0,-4); viewdir = (0,0,1); aspectratio = 1; updir = (0,1,0); } point_light { position = (1, 1, -3.0); colour = (1.0, 1.0, 1.0); constant_attenuation_coeff= 0.25; linear_attenuation_coeff = 0.003372407; quadratic_attenuation_coeff = 0.000045492; } scale(.75, translate(1,-.6,0, sphere { material = { ambient = (0, 1, 1); diffuse = (0.4,0.4,0.4); specular = (1,1,1); shininess = 128; } } )) rotate(1,1,1,1, scale(.75, translate(1.8,.8,-0.5, polymesh { points = ( (0,0,0), (0,1,0), (1,1,0), (1,0,0), (0,0,1), (0,1,1), (1,1,1), (1,0,1)); faces = ( (0,1,2), (0,2,3), (6,5,4), (7,6,4), (3,2,6), (3,6,7), (4,5,1), (4,1,0), (1,5,2), (5,6,2), (4,0,3), (4,3,7) ); material = { ambient = (0.0,0.0,0.0); diffuse = (0.5,0.5,0.5); specular = (0.8,0.8,0.8); shininess = 128; } } ))) rotate(1,1,1,1, scale(.75, translate(-1.8,-.8,-0.5, polymesh { points = ( (0,0,0), (0,1,0), (1,1,0), (1,0,0), (0,0,1), (0,1,1), (1,1,1), (1,0,1)); faces = ( (0,1,2), (0,2,3), (6,5,4), (7,6,4), (3,2,6), (3,6,7), (4,5,1), (4,1,0), (1,5,2), (5,6,2), (4,0,3), (4,3,7) ); material = { ambient = (0.0,0.0,0.0); diffuse = (0.5,0.5,0.5); specular = (0.8,0.8,0.8); shininess = 128; } } )))