Sample scenes
box_cyl_opaque_shadow.ray
box_cyl_reflect.ray
box_cyl_transp_shadow.ray
box_dist_atten.ray
cylinder_refract.ray
cyl_ambient.ray
cyl_diffuse.ray
cyl_diff_spec.ray
cyl_emissive.ray
recurse_depth.ray
sphere_refract.ray
texture_map.ray
Download as a group

cyl_ambient.ray

Purpose: Test for the ambient term

Settings:

Ambient intensity1.00

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);
    }
  } ) )