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_emissive.ray

Purpose: Test for the emissive term

Settings:

Image:

Code:

SBT-raytracer 1.0

// cyl_emissive.ray
// purpose: Test for the emissive term
// ambient: 0

camera
{
  position = (5, 0, 0);
  viewdir = (-1, 0, 0);
  updir = (0, 1, 0);
}

// This scene doesn't need any lights at all
// since the material on the cylinder is
// emissive.  Render it with an ambient light
// intensity of 0.

// The cylinder should turn out a solid red.
rotate( 1, 0, 0, 1.6,
  rotate( 0, 1, 0, -0.5,
    cylinder {
      material = { emissive = (0.5, 0, 0);
    }
  } ) )