how to use TextureCoordinates to generate a mask image?

Hello,

Is it possible to use TexCoord node to generate the following mask?
By default, both U and V is in the range (0, 1).
In the following mask, U will be 0 in the left 50% of the image. And will be 1 in the middle from 50% to 80%. And 0 again in the right 20 percent.
V is not used in this case.

image

image

I know SphereMask can do something similar, but, it’s interesting t to know how to do this without using SphereMask.

Try this:

My Products

2 Likes

Hello, walemmlis!

Maybe for more randomise you can use this method.

1 Like

@Supremative , Thanks! You’re a genius!