Skip to main content

Distance Mask

This mask will appear when the distance between the observer and the pixel of the material is within the start/end range.

Values that are outside the start and end parameters will be clamped to either 0 (black) or 1 (white).

This mask is perfect for proximity and distance based effects. For example, you can blend in a texture based off of the proximity of the observer to the mesh.

The start and end parameters can be inverted so that the start is smaller than one to invert the effect.

For example, if the start is at 0 and the end is at 1, the mask will be white until you get within 1 units of it. Then once you get closer and closer, the mask will fade into black.

Start

This is the distance between the view position and the pixel position at which the mask will start to show.

This value is in world units.

End

This is the distance between the camera position and the pixel position at which the mask will be fully visible (i.e white).

This value is in world units.