Tangent
Overview
Tangent defines a set of 3D surface-normal vectors that apply either to a sibling Coordinate or CoordinateDouble node, or else to a parent ElevationGrid node. Tangent values are perpendicular directions that are used per-polygon or per-vertex when computing lighting and shading.
The Tangent node belongs to the Rendering component and requires at least support level 5, its default container field is tangent. It is available from X3D version 4.0 or higher.
Info: Please note that this node is still experimental, i.e. the functionality of this node may change in future versions of X_ITE.
Hierarchy
1
2
3
4
+ X3DNode
+ X3DGeometricPropertyNode
+ X3DTangentNode
+ Tangent
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
Hint
MFVec4f [in, out] vector [ ] [-1,1]
Set of x-y-z-w orthogonal vector values for a surface, applied either per-vertex or per-face to a mesh. This is an advanced technique for surface shading.
Hint
- Values for w are handedness of the tangent base, either +1 or -1. All vertexes of the same triangle must have the same w value for their tangent vectors.
Warning
- Unit length means a magnitude of 1.0, so x-y-z normal values of (0,0,0) are invalid.