Studio Yotsuba
Back to Node List

Displace

displace

Moves each pixel by using a connected map image or a selected map asset, useful for waves, heat shimmer, dents, and texture wobble.

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
input
Image
Required
Image whose pixels will be moved.
Map
map
Image
Optional map image that decides where and how strongly pixels move. When connected, it overrides the selected map asset.

Output Ports

NameTypeDescription
Image
output
Image
Image after pixels have been moved by the map.

Parameters

NameTypeDefaultRangeDescription / Options
Map Category
category
Enum
Noise—

Category used by the map picker when no Map input is connected.

  • AllAll
  • NoiseNoise
  • MasksMasks
  • GradientsGradients
  • HeightHeight
Map Asset
asset_id
Text
vector_warp_rg_01—

Map asset used when the Map input is not connected. Use the picker button to choose from saved map assets.

Mode
mode
Enum
VectorRG—

Chooses whether the map controls horizontal/vertical movement separately, or pushes pixels along one direction.

  • VectorRGVectorRG
    Use the map's red channel to move left/right and green to move up/down.
  • DirectionalDirectional
    Use one map value, such as brightness or alpha, to move pixels along one angle.
Source
source
Enum
OKLCH-L—

In Directional mode, chooses which map value controls the push strength.

  • OKLCH-LOKLCH-L
    Use perceived brightness. Good when you want the result to match how bright it looks.
  • OKLCH-COKLCH-C
    Use how colorful the pixel is.
  • HSV-HHSV-H
    Use HSV hue normalized to 0..1.
  • HSV-SHSV-S
    Use HSV saturation.
  • HSV-VHSV-V
    Use HSV value.
  • RGB-RRGB-R
    Use the red channel.
  • RGB-GRGB-G
    Use the green channel.
  • RGB-BRGB-B
    Use the blue channel.
  • AlphaAlpha
    Use alpha.
  • LuminanceLuminance
    Use Rec.709 RGB luminance.
Directional Calculation
direction_mode
Enum
AxisScaled—

In Directional mode, choose legacy per-axis strength or an exact angle.

  • AxisScaledAxisScaled
    Preserve the existing behavior: Amount X and Amount Y scale the angle vector separately, so unequal amounts can change the actual movement angle.
  • ExactAngleExactAngle
    Use one Directional Amount so the actual movement direction matches Angle.
Amount X
amount_x
Float
8-256–256 / step 0.1

Horizontal displacement range for VectorRG and AxisScaled Directional. ExactAngle uses Directional Amount instead.

Amount Y
amount_y
Float
8-256–256 / step 0.1

Vertical displacement range for VectorRG and AxisScaled Directional. ExactAngle uses Directional Amount instead.

Directional Amount
direction_amount
Float
80–256 / step 0.1

Displacement range used by ExactAngle. A white map moves by half this value along Angle; black moves by half in the opposite direction.

Angle
angle
Angle
0— / step 1

In Directional mode, this is the direction pixels are pushed. 0 points right; 90 points down.

Sampling
sampling
Enum
Nearest—

Chooses whether moved pixels stay blocky or blend smoothly between neighboring pixels.

  • NearestNearest
    Keep hard pixel steps for a sharper pixel-art result.
  • LinearLinear
    Blend between pixels for a smoother warped image.
Wrap X
wrap_x
Bool
false—

Treat left and right edges as connected when reading the image and map.

Wrap Y
wrap_y
Bool
false—

Treat top and bottom edges as connected when reading the image and map.

Overview

Uses a connected image or a map asset selected in the inspector as a displacement map to shift source-image pixels. Use it for water ripples, heat haze, dents, and distorted fabric or patterns.

The map's colors or brightness determine where and how far pixels move.

Usage tips

  • Start with mode = Directional and direction_mode = ExactAngle: connect noise_generate to map and begin with direction_amount from 2–8. This makes water, heat haze, and flag movement follow the specified angle exactly.
  • In Directional mode, a map value of 0.5 is neutral, white (1.0) moves along the positive angle, and black (0.0) moves in the opposite direction. White and black move by half the configured amount.
  • direction_mode = AxisScaled preserves the previous behavior. It applies amount_x and amount_y separately, so unequal values skew the actual movement away from angle. ExactAngle uses only direction_amount and does not skew the direction.
  • Animate the map itself: change the noise seed per frame or use a scrolling map to animate the distortion.
  • sampling = Nearest (default) is right for pixel art. Linear creates intermediate colors, but interpolates translucent edges in premultiplied-alpha space so hidden RGB in transparent pixels does not create dark or colored fringes.
  • Choose by intent: use slope_blur to smear along terrain, directional_warp to drag in one direction, and this node to displace positions.

Common pitfalls

  • Stretched stripes appear at the edges: sampling goes beyond the image boundary. Turn wrap_x/y ON for tileable assets, or reserve padding with canvas_resize for standalone assets.
  • VectorRG does not move as expected: red controls left/right and green controls up/down. This is an intermediate feature; learn the behavior with Directional first.
  • Movement does not follow the specified angle: this can happen with direction_mode = AxisScaled when amount_x and amount_y differ. Choose ExactAngle when the angle must be exact. map takes priority when an image is connected. If map is unconnected, the node uses the asset selected in Map Asset.

Examples

  • Select soft_warp_01 in Map Asset for gentle distortion.
  • Connect a noise image from another node to map for procedural variation.
  • Use mode = Directional, direction_mode = ExactAngle, source = OKLCH-L, and angle = 0 to push white areas right and black areas left.
  • Use VectorRG and vector_warp_rg_01 for fine four-direction distortion from the red and green map channels.
  • When distorting a tileable asset, turn wrap_x / wrap_y on so pixels shifted beyond one edge are read from the opposite edge.

Related nodes

  • directional_warp — drag in one direction
  • slope_blur — smear along height slopes
  • noise_generate — the go-to map source
  • region_warp — distort by region
Back to Node List