Dynamically Remove White - Replace with Alpha

Hello,

Lets say I have an image like this within my application:

40629-01.jpg

Is there any way to dynamically remove the white during runtime? So it becomes something like this:

40630-02.jpg

I know that I can do this by remove the white within an external editor (PS), but I need it to do it during runtime within Unity. Also, these images are also created dynamically during runtime, for example the user might take a photo of a black and white image, and is then loaded into Unity - so having a pre-made alpha channel isn’t possible.

I appreciate the help, thanks.

1 Answer

1

Hi

Pretty sure you would need to use a sprite, not a jpg and use an alpha channel

These images are also being loaded in at runtime. For example, the user might take a photo of a black and white image. I want to be able to remove the white, and replace it with an alpha. So having an alpha channel before hand isn't possible.