cakeslice / Outline-Effect

Outline Image Effect for Unity
MIT License
1.49k stars 201 forks source link

Unlimited outline colors (and select color from outline) #12

Open Outgoing opened 7 years ago

Outgoing commented 7 years ago

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.

cakeslice commented 7 years ago

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.

Outgoing commented 7 years ago

image

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

Outgoing commented 7 years ago

image The choice of color post here

cakeslice commented 7 years ago

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).

cakeslice commented 7 years ago

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

Soren025 commented 7 years ago

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.

Cesarsk commented 7 years ago

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

yoHasse commented 7 years ago

Same here! It would be awesome!

justadaniel commented 7 years ago

Would be seriously epic!

Julian-Th commented 7 years ago

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

local306 commented 7 years ago

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

yvz5 commented 6 years ago

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

Igorbq commented 5 years ago

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

zyndata commented 5 years ago

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

JimmyCushnie commented 5 years ago

@zyndata can you make a PR for this?

zyndata commented 5 years ago

@zyndata can you make a PR for this?

sure

JimmyCushnie commented 5 years ago

Merged, #45.

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