How to crop a Render Target

Basically, I’m using a set of premade puzzle pieces as Opacity Masks to overlay onto the “puzzle-to-be” image, then capturing them as Render Targets each time, thus giving me the image as separate puzzle pieces. I’m now looking for a way to crop out the empty parts of the texture so that the resulting render target is only as large as the opaque part of the puzzle piece.

So basically, this:

Anyone know how I could go about doing this please?

Hey there @Zarrar2802! I’m not well versed in material operations, but cropping would have to happen on the material level like this thread.

Thank you! I’ll have a look through that post.

Absolutely! I know it’s a bit different than your use case but I believe the cropping (and not much of the panning) should help. If it does help out, let me know! I can use the post (or this one) as a reference for others in the future!

1 Like

Thanks! I’ll try it out and get back to you asap

That soultion works for me :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.