Class SoVertexShaderParameter4b

All Implemented Interfaces:
SafeDisposable

public class SoVertexShaderParameter4b extends SoVertexShaderParameter
Vertex shader parameter node storing a four-dimensional (8-bit integer) vector. This node allows the application to provide a per-vertex parameter of type four-dimensional vector of 8-bit integers 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.

The rangeScaling field indicates if values shall be scaled to a normalized range when they are loaded. Setting rangeScaling to true implies the following conversion for each component c of the vector: (2*c+1)/(2^8-1), i.e., scaling from [-2^7;2^7-1] to [-1;+1].

File format/default:

VertexShaderParameter4b {

    name ""
    identifier 0
    value 0 0 0 1
    rangeScaling false
}

See Also:
  • Field Details

    • value

      public final SoMFVec4b value
      Specifies the parameter's values.
    • rangeScaling

      public final SoSFBool rangeScaling
      Indicates if values shall be scaled to a normalized range when they are loaded.
  • Constructor Details

    • SoVertexShaderParameter4b

      public SoVertexShaderParameter4b()
      Constructor.