Class SoVertexShaderParameterBufferObject

All Implemented Interfaces:
SafeDisposable
Direct Known Subclasses:
SoInstanceParameter

public class SoVertexShaderParameterBufferObject extends SoVertexShaderParameter
Vertex shader parameter node storing a buffer object. This node allows the application to provide a per-vertex parameter of any type, using an SoBufferObject, to shader objects, e.g. SoVertexShader.

Vertex shader parameter nodes must be inserted in the scene graph.

See the base classes SoShaderParameter and SoVertexShaderParameter for details.

File format/default:

VertexShaderParameterBufferObject {

    name ""
    identifier 0
    value NULL
    components 4
    type SbDataType.FLOAT
    stride 0
    shouldBeNormalized false
}

See Also:
  • Field Details

    • value

      public final SoSFBufferObject value
      Specifies the parameter's values.
    • components

      public final SoSFInt32 components
      Specifies the number of components per generic vertex parameter. Must be 1, 2, 3 or 4. The default value is 4.
    • type

      public final SoSFEnum<SbDataType.DataTypes> type
      Specifies the data type from the class SbDataType of each generic vertex parameter component. . SbDataType.Unknown is not allowed, the default value is SbDataType.FLOAT.
    • offset

      public final SoSFInt32 offset
      Offset in bytes to the first parameter within the buffer. Default is 0.
    • stride

      public final SoSFInt32 stride
      Specifies the byte offset between consecutive generic vertex parameter. If stride is 0, the values are understood to be tightly packed in the buffer object. The default value is 0.
    • shouldBeNormalized

      public final SoSFBool shouldBeNormalized
      Specifies if the fixed-point data in the buffer object should be normalized when they are accessed. The default value is false.
  • Constructor Details

    • SoVertexShaderParameterBufferObject

      public SoVertexShaderParameterBufferObject()
      Constructor.