/* 
 * Sample program which uses a "projector" light source
 * Written by Greg Spencer.
 *
 * Obviously, this requires an image to project.  I used the ever-popular
 * mandrill, but you can use what you want.
 *
 * This is a simple scene, which basically projects the image over a ball
 * sitting on a plane.
 */

#ifndef IMAGE
#define IMAGE mandrill.rle
#endif

background .1 .1 .1
eyep 0 0 -40
lookp 0 0 0
up 0 1 0
fov 60
report verbose
screen 300 300
outfile testproj.rle

surface white ambient 0.1 0.1 0.1
	diffuse 1.0 1.0 1.0
	specular 0.4 0.4 0.4 
	specpow 10

light 1.0 projector IMAGE tile 1 1 /* options 'tile' and 'smooth'
					are allowed here */
	0 10 -30  /* from */
	0 0 0 /* to */
	1 1 0 /* up (u): v=dirXu */
	60 /* u angle */
	60 /* v angle */
	false /* Don't use R^2 falloff in intensity */

plane white 0 0 0  0 0 -1

sphere white 5 0 0 -10 
