NormalInterpolator

The NormalInterpolator node is an interpolator which takes a list of 3D vectors in the field keyValue. The NormalInterpolator allows you to control each of the normals defined in a Normal node (the Normal node appears inside of a IndexedFaceSet or ElevationGrid). 

For a list of the events of this node see interpolator

Syntax: 
NormalInterpolator { 
key [ ] 
keyValue [ ] 

The eventOut fraction_changed of this node can be routed to the eventIn set_normal of a Normal node. 

The number of keyValue entries must be equal to the number of keys provided times the number of normals specified in the field normal, i.e. for each key specified there must be as many values as vectors in the normal field to which the fraction_changed eventOut is routed to. Note that by value it is meant a 3D vector. 


This interpolator can be used to vary the lighting effect in a shape. 

Normals are outside the scope of this tutorial in the present version. This node is included in here only for completeness. Future versions of the tutorial may deal with normals.