translate
Shortcuts:
Keywords:
- move
- position
- transform
- translate
Translates coordinates of the input ROP.
Translate can be used in 2D or 3D. It can optionally use a vector field to apply variable amounts of translation based on coordinates. If a field is used, the field values are added to the Translate XYZ parameter.
Parameters
-
Enable
: -
Translate
: Amount of translation along each axis. For 2D, only X and Y are used. -
Coord Type
:-
Auto
: -
2D
: -
3D
:
-
Inputs
-
definition_in
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
Sdf
Ray
Light
Particle
- Coordinate Types:
-
Translate Field
: (optional) If provided, this field is used to control the amount of translation at each point in space. If the field returns a float (or SDF), the `Translate` parameter is *multiplied* by that value. If it returns a vec4, the parts are *added* to the `Translate` parameter parts.- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
Sdf
- Coordinate Types: