Skip to main content Link Menu Expand (external link) Document Search Copy Copied

vectorToFloat

Converts a vector value field to a float field using one part of the vector.

Parameters

  • Enable:
  • Use Part: Which part of the vector to use for the float field.
    • X:
    • Y:
    • Z:
    • W:
    • Length(XY):
    • Length(XYZ): Use the length of the XYZ part of the vector.
    • Length(XYZW): Use the length of all 4 parts of the vector.

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4