FloatVertexAttribute
FloatVertexAttribute
Overview
FloatVertexAttribute defines a set of per-vertex single-precision floating-point attributes.
The FloatVertexAttribute node belongs to the Shaders component and requires at least level 1, its default container field is attrib. It is available from X3D version 3.0 or higher.
Hierarchy
1
2
3
4
+ X3DNode
+ X3DGeometricPropertyNode
+ X3DVertexAttributeNode
+ FloatVertexAttribute
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
SFString [ ] name “”
Required name for this particular VertexAttribute instance.
Hints
- Well-defined names can simplify design and debugging through improved author understanding.
- X3D Scene Authoring Hints, Naming Conventions
Warning
- name is not specified if this instance is a USE node.
SFInt32 [ ] numComponents 4 [1..4]
numComponents specifies how many consecutive floating-point values should be grouped together per vertex.
Hint
- The length of the value field shall be a multiple of numComponents.
MFFloat [in, out] value [ ] (-∞,∞)
value specifies an arbitrary collection of floating-point values that will be passed to the shader as per-vertex information.
Hint
- The length of the value field shall be a multiple of numComponents.
Example
See Also
This post is licensed under CC BY 4.0 by the author.