I am trying add a png to a plane. The image has alpha channel (imagine a centered circle image used as the material for a plane). I am seeing black where the image should be transparent.
How can I set it so that I will see through the alpha channel?
I am using this code:
ecs.PlaneGeometry.set(world, eid, {
width: 1,
height: 1,
})
ecs.Material.set(world, eid, {
textureSrc: 'assets/1.png',
r: 255,
g: 255,
b: 255,
alpha: true,
roughness: 0,
metalness: 0,
normalScale: 0,
opacity: 1,
transparent: true,
emissiveIntensity: 0,
side: 'double',
blending: 'normal',
repeatX: 1,
repeatY: 1,
offsetX: 0,
offsetY: 0,
depthTest: true,
depthWrite: false,
wireframe: false,
})