scale

Keywords:
  • scale
  • transform

Scales space.

Scaling works for either 3D or 2D inputs.

Parameters

  • Enable:
  • Scale: Scale to apply to each axis. If input is 2D only X and Y are used.
  • Scale Type:
    • Separate XYZ:
    • Uniform:
  • Uniform Scale:
  • 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.
  • Apply To:
    • Coordinates:
    • SDF UV:
    • SDF Secondary UV:
    • UV In Material:
    • Field Values:

Inputs

  • definition_in: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4 Sdf Ray Light Particle
  • Scale Field: (optional) If provided, this field is used to modify the scaling at different points in space. If the field returns float values, the value of all the `Scale` parameters are multiplied by that value. If it returns vec4 values, each part of the `Scale` parameter is multiplied by the corresponding value in the vec4.
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float Sdf
  • Pivot Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4