Masking a color map texture with an alpha map

I was wondering if it’s possible for the alpha map to mask a color map (image texture).

Taking this example as a starting point:
https://codepen.io/PierfrancescoSoffritti/embed/wobPVJ

Which works well using an alpha map offset to animate a mask for a sphere mesh which doesn’t have an image texture.

I’ve tried forking that pen for a demo implementation here:

… however the alpha map offset Y no longer animates once I’ve added the color map.

Is this simply not possible with THREE?

Any help appreciated. Thanks!

alpha map is tied to texture map
however, you can dodge this using a canvas texture and animate the canvas itself.
it work well if you wish to keep using default three materials and shaders

1 Like

Concerning the offset not working, check the Texture documentation . If you are using an alpha map and a Color map, they will share their offset.

1 Like