AlphaMap on group possible?

Hi there,

We are looking for a way to hide/show geometry inside a group by using a black/white gradient vignette (alpha mask). Could anyone point us in the right direction?

Thanks!

Groups exist only on the CPU — not the GPU — and are used to determine the world-space transform, visibility, and render order of meshes. To modify a mesh’s appearance using a texture, you’ll need to associate that texture with a material. For example:

group.traverse((object) => {
  if (object.isMesh) object.material.alphaMap = texture;
});

oke, i see, thnks!