I’m trying to do a procedural terrain generation. I’ve managed to make the function to generate the points, and I’ve been testing/debugging by creating the terrain using a polygon collider on an object.
Now that it’s done, I want to use this shape to crop a large sprite using the shape so that I obtain the shaped terrain. If I have a square terrain sprite, is there any way to crop the top or mask it to the shape of the polygon collider (or the shape of the function I’m using).