-
Alpha Channel Problem
I’m trying to have a mask animated on top of a map so that gradually reveals itself:
What I have is an ocean plane with a basic water shader and on top I have a second shader with a map of the wake trail along which the ship will move. The map is fixed as in real life since the foam doesn’t move but instead is left behind as the ship advances.
Then I want to have a third shader with its mapping coordinates animated along with the ship and acting as a mask will reveal the wake as the ship moves and hide the rest of it so whatever is white will be opaque showing the wake and the black will be transparent and show the ocean water.
However, the transparent areas keep coming up black. I tried all sorts of combinations with the texture tag and I’m not having any luck. I wonder whether it’s even possible.
I can do it if it’s all in one shader having a layered alpha (see example) but I need to be able to move one of the alphas coordinates so it needs to be a separate shader.
Attached is a scene with the two options. It needs to look like the above example but animated like the one below.I hope that someone can figure out what am I doing wrong …
Thanks in advance

