Notch Notch Manual 1.0
 Light | Dark
Distance

Distance

This shading node generates a pattern using the distance from the given pixel to the node's position.

Method #

This shading node generates a pattern using the distance from the given pixel to the node’s position. Shading nodes are applied to material texture channels to generate textures procedurally while rendering.

Parameters

ParameterDetails
Position XMove along the local x-axis.
Position YMove along the local y-axis.
Position ZMove along the local z-axis.
Rotation HeadingRotate around the local y-axis.
Rotation PitchRotate around the local x-axis.
Rotation BankRotate around the local z-axis.
Scale XScale along the local x-axis.
Scale YScale along the local y-axis.
Scale ZScale along the local z-axis.

Control the inheritance of the transforms from the parent.

ParameterDetails
PositionToggle inheritance of the Position from the parent.
RotationToggle inheritance of the Rotation from the parent.
ScaleToggle inheritance of the Scale from the parent.
World Position OnlyInherit the world position from the parent only, rotation and scale will be ignored. Overrides above properties.
Inherit TimeToggle inheritance of time from the parent.
ParameterDetails
Mapping TypeThe input position channel.
  • World Position : The position of each vertex relative to the scene world space.
  • Object Local Position : The position of each vertex relative to the objects local space.
  • Texture Coordinate : The position of each vertex relative to the objects texture coordinates.
ModeDetermines how the distance value should be processed.
  • Linear : Return the distance value directly.
  • Sine : Returns a sine pattern using the distance value as input.
  • Cos : Returns a cosine pattern using the distance value as input.
  • Mod : Returns a repeating modulus pattern using the distance value as input.
InvertInverts the distance result.
Distance ScaleScales the distance value.
Distance OffsetOffsets the distance value.
Range MinControls the lower value of the output range.
Range MaxControls the upper value of the output range.
PowerControls the power curve between the high and low values.
AxesChoose which axes are used for calculating the axes. All 3 enables represents the distance from a point, 2 axes would be the distance from a line, and one axis the distance from a plane.
Preview In ViewportPasses this node’s output to the destination material as a colour channel, so it can be previewed more easily.

Inputs

NameDescriptionTypical Input
Transform ModifiersApply the transforms of another node to this node.Null
Target NodeModifiy the rotations of the node to always direct the z axis towards the input.Null
Local Transform OverrideApply the transforms of another node to this node, relative to its parent.Null