cakeslice / Outline-Effect

Outline Image Effect for Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unlimited outline colors (and select color from outline)

Outgoing opened this issue · comments

Hi, is it possible to realize that the color from wondering Outline, you can make more than 3 colors (lineColor0, lineColor1, lineColor2). How to understand it is necessary to process shader.

Hi, sorry I don't understand your question, but no you can't have more than 3 colors.

I use red, green and blue channels for each color.

image

I want to have more than 3 colors, more flexible customization of objects

image
The choice of color post here

Sorry but that is not possible due to the way the effect works. You can only have 3 colors because each color is a channel of the buffer texture (red, green, blue).

I'm reopening this, when I have the time I will try to add unlimited colors.

I would like to see this as well. Three colors is rather limiting for what I want to do and there doesn't seem to be much of anything else that does what this does that I could find.

Totally the same here, in my case, I need around 10 colors, it'd be perfect.

Same here! It would be awesome!

Would be seriously epic!

More than 3 colors would indeed be highly needed! :-)

Just checking in to see whether any progress has been made with this.

every color channel has 256 possible values, so in theory you could have 3 * 256 different outline colors.

Any news? I was really hoping I could add more colors

I added 4th color using alpha channel. I'm not sure if this is the correct way, but it works for now.
outline 4
https://pastebin.com/D53XhQ8X

@zyndata can you make a PR for this?

@zyndata can you make a PR for this?

sure

Merged, #45.

Keeping this issue open because we'd really like to have unlimited color support, not just up to 4.