Studio Yotsuba
Back to Node List

Directional Warp

directional_warp

Shifts pixels along one direction, using a map image as the per-pixel strength

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
input
Image
Required
Image whose pixels will be shifted
Map
map
Image
Required
Map image whose brightness decides how far each pixel shifts

Output Ports

NameTypeDescription
Image
output
Image
Warped image

Parameters

NameTypeDefaultRangeDescription / Options
Angle
angle
Angle
0— / step 1

Shift direction in degrees (0 = right, 90 = down)

Intensity
displacement_px
Float
8-64–64 / step 0.5

Maximum shift in pixels where the map is fully white

Map Source
source
Enum
OKLCH-L—

Which value of the map image to use as 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-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.
Wrap
wrap
Bool
false—

Sample from the opposite edge instead of transparent

Overview

While Displace uses map values as offsets in both X and Y, Directional Warp fixes the displacement direction to an angle and uses the map only to decide the distance. It specializes in distortion with a consistent flow, such as wood grain, wind, or drag marks.

Usage tips

  • The go-to setup is 模様 → このノード ← noise_generate(map). Use angle for the flow direction and displacement_px for its strength.
  • Choose between warp nodes by intent: one consistent direction → this node for simple control; direction varies by location → Displace; follow a height slope → Slope Blur.
  • displacement_px can also be negative to reverse the direction.
  • Turn wrap ON for tileable assets.

Common pitfalls

  • The whole image only shifts uniformly: the map is a solid color. Connect contrasting noise or a gradient to map.
  • Angle convention: 0° = right and 90° = down in screen coordinates. Use 270° to flow upward.

Examples

  1. Wood grain: vertical stripe pattern + Noise map + angle: 0 for horizontal waviness
  2. Grass blowing in the wind: grass tile + horizontal gradient map + angle: 0 to move only the top
  3. Fluttering flag: drive intensity on a Noise(Perlin) map with Time Source

Related nodes

  • displace — free-direction X/Y warping
  • slope_blur — smear along height slopes
  • noise_generate / gradient_generate — map sources
  • wrap_offset — when you only want scrolling without distortion
Back to Node List