#version HMCCS155FALL2002 /* * reflection test. use recursive depth of 2. should see spheres' * reflections in each other as well as in the mirror, towards the * bottom of the scene. should be able to see spheres' reflections * of each other in the reflection in the mirror. */ #background 0.0 0.0 0.0 #ambient 0.0 0.0 0.0 #camera -3.0 -1.0 1.0 // position 1.0 0.2 0.0 // facing 0.0 1.0 0.0 // up 30.0 // heightAngle #light_point -n PointLight1 -- 1.0 1.0 1.0 // color 0.0 -3.0 5.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_point -n PointLight2 -- 1.0 1.0 1.0 // color -3.0 -1.0 -1.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_point -n PointLight3 -- 1.0 1.0 1.0 // color 2.0 5.0 1.0 // position 1.0 0.0 0.0 // const, linear, quad atten #material -n mGreen -- 0.1 0.6 0.3 // ambient 0.1 0.6 0.3 // diffuse 0.9 0.9 0.9 // specular 0.0 0.0 0.0 // emissive 0.9 0.0 0.0 // kspec ktrans refind #material -n mBlue -- 0.1 0.1 0.8 // ambient 0.1 0.1 0.8 // diffuse 0.9 0.9 0.9 // specular 0.0 0.0 0.0 // emissive 0.9 0.0 0.0 // kspec ktrans refind #material -n mMirror -- 0.1 0.1 0.1 // ambient 0.05 0.05 0.05 // diffuse 0.9 0.9 0.9 // specular 0.0 0.0 0.0 // emissive 2.0 0.0 0.0 // kspec ktrans refind #sphere -n Sphere1 -m mGreen -- 0.0 0.7 0.0 // position 0.5 // radius #sphere -n Sphere2 -m mBlue -- 0.0 0.7 2.0 // position 0.5 // radius #triangle -n Triangle1 -m mMirror -- 4.0 0.0 -8.0 // v0 4.0 10.0 7.0 // v1 4.0 -10.0 7.0 // v2 #rayfile_end