Titania X3D Editor

Bring Colours to Your Life.

Titania v4.3.6

Bring Colours to Your Life.

X3D Reference

FloatVertexAttribute

FloatVertexAttribute

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

The FloatVertexAttribute node belongs to the Shaders component and its container field is attrib. It is available since X3D version 3.0 or later.

Hierarchy

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

SFString [ ] name ""

Required name for this particular VertexAttribute instance.

Warning

Name is not specified if this instance is a USE node.

SFInt32 [ ] numComponents 4 [1..4]

NumComponents pecifies 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

FloatVertexAttribute

XML Encoding

Classic Encoding

JSON Encoding

Browser Compatibility

Titania X_ITE
yes yes

External Links

Cookies and other Technologies

By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.