arypbatista / godot-bordered-polygon-2d

Polygon2D with textured borders
MIT License
61 stars 9 forks source link

If you choose to overlap borders, then opacity will put in evidence the overlap. #29

Open arypbatista opened 7 years ago

arypbatista commented 7 years ago

If you choose to overlap borders, then opacity will put in evidence the overlap.

image

jtaart commented 7 years ago

Isn't this the reason you want to have overlap?

arypbatista commented 7 years ago

No, I want to use overlap to hide fill borders, plus have some texture-alpha opacity to blend with fill texture.

I would like this to behave differently, to first merge textures and then apply opacity to the whole node, so you will see opacity but you won't be able to detect where the inner polygon ends.

But unless we split border polygons in two (outer border, inner border) and apply opacity differently to what is outside and inside, I think this might only be achieved throw _draw.