Environment

Syntax:

	(environment
		(ambient: coord)
		(eta: number)
		(transparency: number)
		(color: coord))

ambient:

A set of coordinates indicating the (r, g, b) value of the ambient light in the environment. Each element is on the range {0,1}. The default ambient is (.5, .5, .5).

eta:

A number on the range {1,2} indicating the index of refraction of the environment. The default eta is 1, the index of refraction of air.

transparency:

A number on the range {0,1} indicating the transparency of the environment. A value of 1 produces a perfectly transparent envionment; a value of 0 produces a completely opaque environment. The default transparency is 1.

color:

A set of coordinates indicating the (r, g, b) value of the color of the environment . Each element is on the range {0,1}. The default color is (1, 1, 1).


Example:

(environment (eta: 1.3) (transparency: .8))

This code creates an environment with an index of refraction of 1.3 (approximately the index of refraction of water) and a transparency of .8. This transparency value will produce a slight fog effect on distant objects.


© 1996, Morgan McGuire ([email protected]) and Laura Wollstadt ([email protected]).
All rights reserved.

LBW 12/05/96