/* * A simple ray file for testing all lights and the triangle and sphere * primitives. */ #version HMCCS155FALL2002 #background 0.0 0.0 0.0 #ambient 0.2 0.2 0.2 #camera 0.0 0.0 20.0 // position 0.0 0.0 -1.0 // facing 0.0 1.0 0.0 // up 30.0 // heightAngle #light_dir -n DirectionalLight1 -- 0.5 0.5 0.5 // color -1.0 -1.0 -1.0 // direction #light_point -n PointLight1 -- 0.3 0.3 0.3 // color -5.0 5.0 5.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_spot -n SpotLight1 -- 0.25 0.25 0.25 // color 4.0 0.0 4.0 // position 0.0 0.0 -1.0 // direction 1.0 0.01 0.001 // const, linear, quad atten 30.0 0.2 // cutoff dropoff #material -n mRed -- 1.0 0.0 0.0 // ambient 1.0 0.0 0.0 // diffuse 1.0 0.0 0.0 // specular 0.0 0.0 0.0 // emissive 0.05 0.0 0.0 // kspec ktrans refind #material -n mGreen -- 0.0 1.0 0.0 // ambient 0.0 1.0 0.0 // diffuse 0.0 1.0 0.0 // specular 0.0 0.0 0.0 // emissive 0.1 0.0 0.0 // kspec ktrans refind #material -n mBlue -- 0.0 0.0 1.0 // ambient 0.0 0.0 1.0 // diffuse 0.0 0.0 1.0 // specular 0.0 0.0 0.0 // emissive 0.2 0.0 0.0 // kspec ktrans refind #sphere -n Sphere1 -m mBlue -- 0.0 3.0 0.0 // position 3.0 // radius #triangle -n Triangle1 -m mRed -- 5.0 0.0 0.0 // v0 -5.0 0.0 0.0 // v1 0.0 -5.0 0.0 // v2 #triangle -n Triangle2 -m mGreen -- 50.0 50.0 -15.0 // v0 -50.0 50 -15.0 // v1 0.0 -50.0 -15.0 // v2 #rayfile_end