I succeded to apply filter that add fading opaque border to an image, but when I do it with an image with alpha, here is what I get:
The aplha channel turns black…
How can I prevent this ?
Here is material function:
I succeded to apply filter that add fading opaque border to an image, but when I do it with an image with alpha, here is what I get:
The aplha channel turns black…
How can I prevent this ?
Here is material function:
Sadly PNG and alpha dont play nice, try TGA with alpha and it should be solved.
Also, since you are multiplying a gradient with 10, you might want to saturate (clamp) the output first.
I just exported my file as a TGA, but there is no transparency at all:
(when I don’t apply the filter, the image is transparent)