rotate

Shortcuts:
  • rot
Keywords:
  • rotate
  • spin
  • transform
  • twist

Transforms space with rotation.

The operator has 2 main modes: a single rotation around an axis, or 3 separate rotations around each axis.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Rotate Mode
  • Axis:
  • Euler:
Axis

The direction of the axis around which to rotate. This is a vector pointing along the axis.

Rotate

The amount of rotation to use when in single-axis mode. This is specified in degrees (0..360).

Rotate Order

The order of the 3 axis rotations.

  • Rx Ry Rz:
  • Rx Rz Ry:
  • Ry Rx Rz:
  • Ry Rz Rx:
  • Rz Rx Ry:
  • Rz Ry Rx:
Rotate XYZ

The amount of rotation along each axis, in degrees (0..360).

Use Pivot

Optionally pivot the rotation around a specific point instead of around the origin (0, 0, 0).

Pivot

The point around which to apply the rotation. For 2D coordinates, only the X and Y parts are used.

Optimize
Apply To
  • Coordinates:
  • SDF UV:
  • SDF Secondary UV:
  • UV In Material:
  • Field Values:

Inputs

  • definition_in: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4 Sdf Ray Light Particle
    • Supports Variables From Inputs: rotateField pivotField
  • Rotate Field: (optional) Optional field that can be used to control the amount of rotation. If in single axis mode, this must produce a single float value, which is added to the `Rotate` parameter. If in 3 axis mode, it can either produce a single value, which is multiplied with each of the axis rotations. Or it can produce vectors which are added to the axis rotations.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables From Inputs: pivotField
  • Pivot Field: (optional) Optional field that can be used to control the pivot point.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4