Basic HTML version of Foils prepared April 6 1997

Foil 132 PointLight Node Fields - II

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 97. by Zeynep Ozdemir(Geoffrey C. Fox)


color specifies a RGB color for the light.
attenuation field controls how the light source's brightness fades as one moves away from center (position of PointLight) of sphere of influence. For a shape coordinate within this sphere at a distance d from the light's location, the light color brightness at that shape coordinate is determined as follows:
  • attenuatedColor = lightColor/(attenuation[0]+attenuation[1]*d+attenuation[2]*d*d)
  • attenuation[0] controls whether light has a constant brightness within the sphere of illumination.
  • attenuation[1] controls how the light brightness drops off with distance from the light.
  • attenuation[2] controls how the light brightness drops off with the square of distance from the light. (Normal laws of physics)



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Mar 15 1998