Class: FloatVertexAttribute

X3D: 3.3
Component: Shaders
Status:
experimental

.nodeTypes. FloatVertexAttribute

The FloatVertexAttribute node defines a set of per-vertex single-precision floating point attributes.

HTML Encoding and Default Values

<FloatVertexAttribute metadata='X3DMetadataObject' name='""' numComponents='4' value='[]' ></FloatVertexAttribute>

Inheritance


Constructor

FloatVertexAttribute(ctx)

Constructor for FloatVertexAttribute

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
name SFString "" X3DVertexAttributeNode The name field describes a name that is mapped to the shading language-specific name for describing per-vertex data. The appropriate shader language annex contains language-specific binding information.
numComponents SFInt32 4 [1..4] The numComponents field specifies how many consecutive floating point values should be grouped together per vertex. The length of the value field shall be a multiple of numComponents.
value MFFloat [] (-inf, inf) The value field specifies an arbitrary collection of floating point values that will be passed to the shader as per-vertex information. The specific type mapping to the individual shading language data types is in the appropriate language-specific annex.