vectorToFloat

convert
vectorToFloat
RayTK
v0.36

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 / Red:
    • Y / Green:
    • Z / Blue:
    • W / Alpha:
    • 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.
    • Minimum(XY):
    • Minimum(XYZ):
    • Minimum(XYZW):
    • Maximum(XY):
    • Maximum(XYZ):
    • Maximum(XYZW):
    • Average(XY):
    • Average(XYZ):
    • Average(XYZW):
    • Hue:
    • Saturation:
    • Value:
    • Luminance:
    • Sum(XY):
    • Sum(XYZ):
    • Sum(XYZW):

Inputs

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