#version HMCCS155FALL2002 /* * shadows from three different lights. sphere's shadow from directional * light should appear towards the top, from a point light should appear * in the bottom left, and from a spot light in the bottom right. * all three should be clearly within the field of view from the * camera's default position */ #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_dir -n DirectionalLight1 -- 1.0 1.0 1.0 // color 1.0 1.0 0.0 // direction #light_point -n PointLight1 -- 1.0 1.0 1.0 // color -10.0 10.0 10.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_spot -n SpotLight1 -- 1.0 1.0 1.0 // color -10.0 10.0 -10.0 // position 1.0 -1.0 1.0 // direction 1.0 0.0 0.0 // const, linear, quad atten 20.0 1.0 // cutoff dropoff #material -n mSimple -- 0.1 0.6 0.3 // ambient 0.1 0.6 0.3 // 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 mSimple -- 0.0 0.0 0.0 // position 0.5 // radius #triangle -n Triangle1 -m mSimple -- 2.0 0.0 -8.0 // v0 2.0 -10.0 7.0 // v1 2.0 10.0 7.0 // v2 #rayfile_end