SoVertexAttribute4ub¶
- InventorModule¶
genre
author
package
dll
definition
Purpose¶
The module SoVertexAttribute4ub allows for providing a named vertex attribute to the SoVertexShader shader.
Note that the number of values needs to match the number of vertices of the geometry that is rendered (as given by SoVertexProperty, SoCoordinate3, or SoCoordinate4).
Vertex attributes are only supported if vertex array rendering is used,
which is the case for SoFaceSet, SoIndexedTriangleSet, SoIndexedFaceSet, SoLineSet, SoIndexedLineSet, SoPointSet nodes if the PER_VERTEX or PER_VERTEX_INDEXED mapping is used.
Output Fields¶
self¶
- name: self, type: SoNode¶
Place this node in front of the shape node that should be rendered.
Parameter Fields¶
Visible Fields¶
Name¶
- name: name, type: String, default: attribute1¶
Sets the name of the attribute as used in the shader.
If the current vertex shader does not use the attribute, it is not bound.
Per Instance¶
- name: perInstance, type: Bool, default: FALSE¶
Values¶
- name: values, type: IntegerList, default: 0¶
Sets the values of the attribute.
Note that each UInt32 value is interpreted as 4 unsigned bytes that are loaded as RGBA. The byte ordering is as in
SbColor.getPackedValue.
Normalized¶
- name: normalized, type: Bool, default: TRUE¶
If checked, the values are normalized to the range [-1, 1] in the shader.