DirectionalLight


Purpose:

This node is one of the three nodes in the Lights subgroup of the Property Nodes. It defines a directional light source that illuminates objects falling inside of rays parallel to a given 3-dimensional vector.

Syntax
FILE FORMAT/DEFAULTS
DirectionalLight {
	on		TRUE 	# SFBool
	intensity	1	# SFFloat
	color		1 1 1	# SFColor
	direction	0 0 -1	# SFVec3f
}
Explanation

A DirectionalLight node, as with other light nodes, defines an illumination source that may affect subsequent shapes in the scene graph. This node is affected by the current transformation. One item you should pay special attention to is that a DirectionalLight node under a separator will not affect any objects you may have placed outside that separator.

Example Use

The following code fragment is from Allnodes.wrl.

DirectionalLight {
	on		True
	intensity	0.8
	color		1 1 1
	direction	0 0 -1
}
See Also

PointLight, SpotLight