Share

Line - Arnold User Guide

The Line shader draws parametrized procedural lines over a surface. Line can be used to simulate hatches, etching, geometric patterns, or brush-stroke-like textures when combined with noise, textures, and various other effects in 2D space. There are several different modes to choose from, but some line modes are better suited for specific situations. Tone-remapping is also supported by linking the colors to another node, as long as the child node reads the UV coordinates of the lines. This is useful for creating gradients or color patterns along the lines.

Complex hierarchical patterns can be generated by connecting shaders (including other line shaders) to line shader parameters:

The UV Transform shader can be used to control the position, rotation, and scaling of the lines:

Canvas

Background Color

The color (default is black) for the area outside the lines. Texture can also be applied.

Coordinate

Coordinate System

Selects the coordinate system.

Num Lines

Number of lines per unit area [0,0] x [1,1]

Num Segments

Number of segments to divide a unit-length line into. Use a value greater than 1 for dashed lines.

Note:

A line length less than 1 (default is 0.9) is required to view line segments.

Line

Color

Line color (default is white). A texture can also be applied here.

Width

Line width.

Line Length

Line length.

Interval

Increases the span between lines.

Decimate Mode

Specifies the mode for reducing the number of lines drawn per unit area.

Density

Retains lines per unit area based on the specified density.

Density: 0 to 1. Decimate Mode: random (line)

Smooth Mode

Specifies whether to blur both sides of the line (both_sides) or only the surrounding area (peripheral).

Smoothness

Specifies the amount of line blur. Values greater than 0 also help with antialiasing.

Interval Offset Mode

When the width is less than 1, gaps appear between adjacent lines, and interval offset mode determines how the lines are shifted within those gaps.

Line Offset Mode

When length is less than 1, gaps appear between adjacent line segments, and line offset mode determines how the lines are shifted within those gaps.

Offset

Specifies the amount a line moves in the direction of adjacent lines and segments.

Style

Style

Specify the line style.

Amplitude

Specify the curvature strength of the wavy line.

Frequency

Higher values produce more undulations in the wavy line.

Phase

Shifts where the wave starts rising and falling.

Tip

Tip Shape

Specifies the shape of the line end.

Tip Ratio

Specifies the proportion of the line covered by the tip shape. Use a value greater than 0 to display the tip_shape.

Tip Fade

For values greater than 0, the line color fades toward the tip. When set to 1, the tip becomes transparent.

Tip Bias

Shifts the peak pressure from the line's head to the tail.

Layer

Num Layers

Specifies the number of layers to stack.

Combining Line Num with different coordinate systems and styles produces a wide range of patterns

Blend Mode

Specify the blending method for stacking multiple layers.

Shift Per Layer

Per-layer shift amount.

Rotation Per Layer

Per-layer rotation amount.

Skip Transform

Ignores per-layer transformations when querying width, length, and density.

Was this information helpful?