pointDistanceField
field
pointDistanceField
RayTK
v0.42
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. | ||
| |||
Axes | Which axes to use when calculating distances. | Semi-Baked | Semi-Baked |
|
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
- Coordinate Types:
-
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
- Coordinate Types: