Hi,
if I have a material with an alphaMap like:
material.alphaMap = alphaMap;
material.alphaMap.magFilter = THREE.NearestFilter;
material.alphaMap.wrapT = THREE.RepeatWrapping;
material.alphaMap.repeat.y = 1;
and then animate the alphaMap like:
material.alphaMap.offset.y += 0.002;
…everything is fine when my material “just” uses a color like:
let material = new THREE.MeshStandardMaterial({
color: 0xff00ff,
transparent: true, alphaMap:myAlphaMap,
side: THREE.DoubleSide,
flatShading: true,
alphaTest: 0.5,
});
As soon as my material uses a map instead of a color, the animation is “gone”:
let material = new THREE.MeshStandardMaterial({
map:mymap,
transparent: true, alphaMap:myAlphaMap,
side: THREE.DoubleSide,
flatShading: true,
alphaTest: 0.5,
});
Isn’t it possible as to have a map sort of masked by an animated alphaMap?