Download as a group | cyl_diff_spec.ray Purpose: Test for specular term added to diffuse Settings: Image: Code: SBT-raytracer 1.0 // cyl_diff_spec.ray // purpose: Test for specular term added to diffuse // This was rendered with the following attenuation // settings: // Distance scale: 0.000 OR 1.87 // Constant term: 0.25 OR 0.25 // Linear term: 0.0033724 OR 0.25 // Quadratic term: 0.00004592 OR 0.25 camera { position = (5, 0, 0); viewdir = (-1, 0, 0); updir = (0, 1, 0); } // This is a directional light coming from behind us directional_light { direction = (-1, 0, 0); color = (1, 0, 1); } // The cylinder should have a specular highlight // in the middle. rotate( 1, 0, 0, 1.6, cylinder { material = { diffuse = (0, 0, 1); specular = (1, 0, 1); shininess = 1.0; } } ) |