magnet
filter
magnet
RayTK
v0.42
Pulls or twists space within an area.
If the magnet definition input is connected, that operator is used to determine how much transformation to apply at each point in space. If there is no magnet definition connected, the magnet is based around a center point with a radius, and a blending region.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Enable | |||
Amount | How much effect to apply overall. | Runtime | Baked |
Center | The center position of the magnet (used if the magnet definition is not connected). | Runtime | Baked |
Radius | The radius of the magnet area. | Runtime | Baked |
Fade | The width of the blending region between the magnet and the rest of space. | Runtime | Baked |
Scale | Scaling to be applied within the magnet area. | Runtime | Baked |
Rotate | Rotation to be applied within the magnet area. | Runtime | Baked |
Translate | Amount of translation along each axis. For 2D, only X and Y are used. | Runtime | Baked |
Scale Type | Semi-Baked | Semi-Baked | |
| |||
Uniform Scale | Runtime | Baked |
Inputs
-
definition_in
: (required)- Coordinate Types:
float
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
Sdf
Volume
Ray
Light
Particle
- Supports Variables From Inputs:
magnet_definition_in
easing_definition_in
- Coordinate Types:
-
Magnet
: (optional) Magnet definition used to determine how much transformation to apply at each point. If this is an operator that produces an SDF or float value, that value is used to decide how far each point is from the magnet. If it returns a vec4, it is used to determine where the magnet center position is relative to each point.- Coordinate Types:
float
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
Sdf
- Coordinate Types:
-
Easing
: (optional) Easing function used to control how the blending region is smoothed.- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables From Inputs:
magnet
- Coordinate Types:
-
Fade Field
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables From Inputs:
magnet
radiusField
- Coordinate Types:
-
Easing Function
: (optional)- Coordinate Types:
float
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables From Inputs:
magnet
radiusField
fadeField
- Coordinate Types:
-
Amount Field
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables From Inputs:
magnet
radiusField
easing
amountField
- Coordinate Types: