pointDistanceField

pointDistanceField

field
pointDistanceField
RayTK
v0.36

A float field that provides the distance from a specific point in space from either the current position or from another point.

Parameters

  • Center: The point from which distance is measured.
  • Coord Type: The type of coordinates to use.
    • Auto:
    • 1D:
    • 2D:
    • 3D:
  • Axes: Which axes to use when calculating distances.
    • XYZ:
    • XY:
    • YZ:
    • XZ:
    • X:
    • Y:
    • Z:

Inputs

  • Coordinate Field: (optional) If provided, this is used to produce positions instead of the actual coordinates.
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • Center Field: (optional) If provided, this is used to produce the center position instead of the Center parameter.
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4