#version HMCCS155FALL2002 /* * colored shadow test. all you can see in the field of view is a white * sphere with a white background behind it. behind the camera is the * single light source and in front of that light but still behind the * camera is a 50% transparent textured, colored triangle. if * colored shadows are implemented, when raytraced, the color (and * texture) should appear in the shadow on the white sphere and background * instead of simply creating a black shadow. */ #background 0.0 0.0 0.0 #ambient 0.0 0.0 0.0 #camera -2.5 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 PointLight1 -- 1.0 1.0 1.0 // color -10.0 0.0 0.0 // position 1.0 0.0 0.0 // const, linear, quad atten #material -n mWhite -- 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.0 0.0 // kspec ktrans refind #material -n mTextured -t warning.bmp -- 0.0 0.0 0.0 // ambient 0.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 #triangle -n StainedGlass -m mTextured -t -- -3.0 0.0 3.0 0.0 0.0 // v0, t0 -3.0 2.0 -0.25 1.0 0.0 // v1, t1 -3.0 -2.0 -0.25 0.0 1.0 // v2, t2 #sphere -n Sphere1 -m mWhite -- 1.0 0.0 0.0 // center 1.0 // radius #triangle -n Backdrop -m mWhite -- 2.0 0.0 -8.0 // v0 2.0 -10.0 7.0 // v1 2.0 10.0 7.0 // v2 #rayfile_end