Class SoVertexShaderParameter4i

All Implemented Interfaces:
SafeDisposable

public class SoVertexShaderParameter4i extends SoVertexShaderParameter
Vertex shader parameter node storing a four-dimensional (integer) vector. This node allows the application to provide a per-vertex parameter of type four-dimensional vector of 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^32-1), i.e., scaling from [-2^31;2^31-1] to [-1;+1].

File format/default:

VertexShaderParameter4i {

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

See Also:
  • Field Details

    • value

      public final SoMFVec4i32 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

    • SoVertexShaderParameter4i

      public SoVertexShaderParameter4i()
      Constructor.