Smooth 3d gradient pattern

Hi all,
I have been struggling to create a pattern in a way that the diamond pattern begins sharp and as it goes forward it fades out smoothly into a plain surface. I managed to create a pattern but I managed to fade out only in the the corners.
I have uploaded a screenshot describing my problem. The direction of the arrow is how the pattern should fade out. (FYI, this is in Alias but pattern is made on grasshopper in rhino)

Can someone help me with it?

post your grasshopper file with the pattern please with the relevant geometry internalized

3d pattern diamond.3dm (304.4 KB)
diamond pattern.gh (20.6 KB)

the pattern is applied only on the front curved surface of the roof.

I’m not working with Lunchbox, so I can’t help you unfortunately.

You might want to add a tag “lunchbox” in the topic description or post a definition without it

Ok. But if I have you have to work without lunchbox and create a pattern which is fading out. Can you suggest an algorithm for that?

Instead of calculating the distance to the boundary, you can get the distance to a surface above your pattern.

Ok. Could you show the algorithm to get an understanding of its process, if you can.

Forgot to post the file above.

diamond_pattern_attractor.gh (39.5 KB)