Topic: Fade the map and then draw polygon with fade out the map inside.

I need fade the map a bit and then draw the polygon with fade out the map inside the polygon. I'm using 2d mode with uGUI image. How I could do it?
Attached example of what I need.
Thanks.

Post's attachments

Attachment icon Sketch.png 121.72 kb, 81 downloads since 2017-11-18 

Re: Fade the map and then draw polygon with fade out the map inside.

Hello.

It is not easy, but possible, for example in such ways:
1. Using UI.
Convert the coordinates of points to screen positions.
Draw this shape on UI, and use it as an inverted mask.

2. Tileset.
This effect can be done by writing a custom shader for drawing elements.
I'm not a great expert in creating shaders, but I believe that this is possible.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Fade the map and then draw polygon with fade out the map inside.

Thanks for your replying.
I found solution with creating a mesh, shader, and second camera.