// test scene view { (2,0,2), // eye-point vector (0,0,0.7), // target pos (0,0,1), // up-vector 1,1 // width/height angle } light { (2.5,2.9,3), // pos (14.7,14.7,14.7) // color 1.0 } light { (6,1,3), // pos (14.7,14.7,14.7) // color 1.0 } light { (2.5,-2.9,2), // pos (14.7,14.7,14.7) // color 1.0 } object floor { (0,1.5,0) // pos (0,0,1) // normal (0.5,0.5,0.5),(0.2,0.2,0.2), // color 0.3 // size material { (0.0,0.5,0.0), // diffuse (0.5,0.5,0.5), // specular color ( set r=b=g ) 1, // specular 0.2, // reflect 0, 0 // transparency,refract } } object csg sub { src1 quadricsurface { 1 1 1 // x^2 y^2 x^2 0 0 0 // xy yz zx 0 0 -2 // x y z 0.6 // const material { (0.80,0.5,0.5), // diffuse (0.3,0.1,0.9), // specular color ( set r=b=g ) 3, // specular 0.2, // reflect 0.0, 1.2 // transparency,refract (0.27,0.21,0.21) // ambient } } src2 box { (0,0,1) // pos (1,0,1,1) // rotation 1,1,1 // width,height,depth } } object box { (0,0,1) // pos (1,0,1,1) // rotation 0.9999,0.9999,0.9999 // width,height,depth material { (0,0,0.1), // diffuse (0.2,0.2,0.2), // specular color ( set r=b=g ) 1, // specular 0, // reflect 1.0, 1.0 // transparency,refract (0,0,0.1) // ambient } }