I use custom blending for a shape and would like to fade it out.
I’ve tried setting the opacity, but it doesn’t work if I use a custom blendmode. How could I do it?
This is the material:
var material = new THREE.MeshBasicMaterial({
color: 0x171644,
side: THREE.DoubleSide,
depthWrite: false,
transparent: true,
opacity: 0.1
});
material.blending = THREE.CustomBlending;
material.blendEquation = THREE.AddEquation;
material.blendSrc = THREE.OneMinusDstColorFactor;
material.blendDst = THREE.OneMinusDstColorFactor;
thanks!