#version HMCCS155FALL2002 /* * single directional light on sphere and triangle. should see specular * highlight on sphere, but not triangle. both should be mostly lit. */ #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 -1.0 // direction #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 -- 2.0 0.0 -1.5 // position 1.0 // radius #triangle -n Triangle1 -m mSimple -- 1.0 0.0 0.0 // v0 1.0 -1.0 1.5 // v1 1.0 1.0 1.5 // v2 #rayfile_end