- Home /
Question by
VincentRodriguez · Mar 12, 2012 at 03:20 PM ·
javascriptguitexturemapmask
Masking GUI Textures
Hi all,
I need to create a map on the top/right side of screen, but I need to crop it, so it would be rounded and with border. I use Render Texture for the map. And I think GUI texture masking will be best problem solution.
Thanks in advance :)
Comment
Best Answer
Answer by syclamoth · Mar 12, 2012 at 04:30 PM
If you are using a renderTexture for a minimap, you should just make a small, circular mesh that floats in front of the camera. Then, when you apply the renderTexture to that mesh, the edges will be rounded accordingly.
Answer by Tasarran · Mar 12, 2012 at 04:19 PM
Just make the texture have an alpha channel.
Those parts of the image will be transparent.
You can use PhotoShop or GIMP to do this.