pointDistanceField

pointDistanceField

field
pointDistanceField
RayTK
v0.40

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

Parameters

Name Description Regular Handling Read-Only Handling
Center

The point from which distance is measured.

Runtime Baked
Coord Type

The type of coordinates to use.

  • Auto:
  • 1D:
  • 2D:
  • 3D:
Axes

Which axes to use when calculating distances.

Semi-Baked Semi-Baked
  • 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 VertexContext PixelContext
    • 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 VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: coordField