Download as a group | cyl_ambient.ray Purpose: Test for the ambient term Settings:
Image: Code: SBT-raytracer 1.0 // cyl_ambient.ray // purpose: Test for the ambient term // ambient: 1.00 camera { position = (5, 0, 0); viewdir = (-1, 0, 0); updir = (0, 1, 0); } // This scene doesn't need any directional/point // lights since the material on the cylinder has // an ambient color. Render it with an ambient light // intensity of 1.00. // The cylinder should turn out a solid red. rotate( 1, 0, 0, 1.6, rotate( 0, 1, 0, -0.5, cylinder { material = { ambient = (0.5, 0, 0); } } ) ) |