#version HMCCS155FALL2002 /* * tests for transmission of light through thin object - triangle. * should see green sphere in background, with a pinkish triangle in front * (triangle covers field of view). if triangle isn't pink, that means * incident light on the back of a triangle isn't being calculated. */ #background 0.0 0.0 0.0 #ambient 0.0 0.0 0.0 #camera -3.0 0.0 0.0 // position 1.0 0.0 0.0 // facing 0.0 1.0 0.0 // up 30.0 // heightAngle #light_point -n FrontLight -- 1.0 1.0 1.0 // color -5.0 0.0 0.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_point -n RearLight -- 1.0 0.0 0.0 // color 5.0 0.0 0.0 // position 1.0 0.0 0.0 // const, linear, quad atten #material -n mTrans -- 0.0 0.0 0.0 // ambient 1.0 1.0 1.0 // diffuse 0.0 0.0 0.0 // specular 0.0 0.0 0.0 // emissive 0.9 0.5 0.0 // kspec ktrans refind #material -n mGreen -- 0.0 0.0 0.0 // ambient 0.0 1.0 0.0 // diffuse 1.0 1.0 1.0 // specular 0.0 0.0 0.0 // emissive 0.9 0.0 0.0 // kspec ktrans refind #sphere -n Sphere1 -m mGreen -- 2.0 1.0 1.0 // center 0.5 // radius #triangle -n Triangle1 -m mTrans -- 0.0 0.0 -8.0 // v0 0.0 -10.0 7.0 // v1 0.0 10.0 7.0 // v2 #rayfile_end