Wire Pattern VEX node

Returns float between 0 and 1 which defines a wire grid pattern useful for simulating screens or visualizing parametric or texture coordinates.

All Inputs Outputs Examples

See also: UV Texture, Global Variables, Displace Along Normal, Import Displacement Variable

Typically, this operator is used in a displacement shader with the output used as the displacement amount. This value can be made an export parameter for import into the surface shader to control the opacity and/or color.

Inputs

width

The width of the wires.

UFreq

The number of wires along the s direction.

VFreq

The number of wires along the t direction.

s

U coordinate. This should be connected to the s output of uvcoords. If it is not connected, the global s will be used instead.

t

V coordinate. This should be connected to the t output of the uvcoords. If it is not connected, the global t will be used instead.

Outputs

sum

This is a float between 0 and 1.

Usages in other examples

Example name Example for