PointLight


Purpose:

This node is one of the three lights properties Nodes. PointLight defines a point light source at a fixed and stationary three-dimensional location. This light source is omni-directional. In other words, it illuminates the virtual world equally in all directions.

Syntax
FILE FORMAT/DEFAULTS
PointLight {
	on		TRUE	# SFBool
	intensity	1	# SFFloat
	color		1 1 1	# SFColor
	location	0 0 1	# SFVec3f
}
Explanation

Basically, any of the three light nodes will define an illumination source that may affect any shapes or objects coming later in the scene graph. This, of course, will depend on the current lighting style. Keep in mind also that light sources will be affected by the current transformation. Also, any light node under a separator will not affect any objects outside that separator.

Example Use

The following code fragment is from Calig4.wrl.

DEF LocLight PointLight {
	color		1.000 0.647 0.376
	on		TRUE
	location	0.000 0.000 0.000
	intensity	1.300
}
See Also

DirectionalLight, Separator, SFBool, SFColor, SFFloat, SFVec3f, SpotLight