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:
floatvec2vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4SdfVolumeRayLightParticle - Supports Variables From Inputs:
magnet_definition_ineasing_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:
floatvec2vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4Sdf
- Coordinate Types:
-
Easing: (optional) Easing function used to control how the blending region is smoothed.- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables From Inputs:
magnet
- Coordinate Types:
-
Fade Field: (optional)- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables From Inputs:
magnetradiusField
- Coordinate Types:
-
Easing Function: (optional)- Coordinate Types:
float - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables From Inputs:
magnetradiusFieldfadeField
- Coordinate Types:
-
Amount Field: (optional)- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables From Inputs:
magnetradiusFieldeasingamountField
- Coordinate Types: