ID:2934045
 
Resolved
The outline filter can now accept a negative size for an inset overlay.
Applies to:DM Language
Status: Resolved (515.1643)

This issue has been resolved.
So Ter and I have been chit-chatting about a visual effect I'm trying to pull off that involves trying to get an outline filter to follow the contour of an alpha mask that's cutting off the edges of an icon.

This effect works as expected, there's no bug here, the outline will in fact be around the masked out portions. The issue is that with a mask that's precisely sized to fit something inside of something else, the outline is going to be invisible. The only real working solution we devised outside of manually drawing the outlines and doing some nonsense to keep them updated involves three filters and filters aren't cheap, especially when stacking up.

If we had a way to do a "border" effect instead of an outline, using -1 as the size it would allow for these types of effects, this would draw the outline over top of the visible pixels on the edge of the icon instead of outside of them.

Sizes below -1 would probably be cool too, but I imagine they'd ugly pretty fast as it tried to figure out how to maintain the shape as it shrunk. But -1 would be pretty cool all by itself.

If my phone-typed explanation isn't getting my idea across I can throw some example images up later on if my power ever comes back on.
I have a hunch this is very doable. The idea would be to use the existing outline filter but maybe have an inverted pass to start (might require a new shader component), then do any subsequent passes, then instead of blending as an underlay of the original icon it'd do a BLEND_INSET_OVERLAY instead kinda like the way drop shadows work.
Lummox JR resolved issue with message:
The outline filter can now accept a negative size for an inset overlay.