When I use MeshResource.generatePlane() to create a plane and apply transparency (any alpha < 1.0), it makes the entity completely not render in AR (suddenly disappears).
Renders as expected when alpha is set to 1.0.
let mesh = MeshResource.generatePlane(width: planeAnchor.extent.x, depth: planeAnchor.extent.z)
var material = SimpleMaterial()
material.baseColor = MaterialColorParameter.color(.init(red: 0.0, green: 1.0, blue: 1.0, alpha: 0.5 )) /* setting the alpha makes the generated plane disappear */
let modelEntity = ModelEntity(mesh: mesh, materials: [material])
let anchorEntity = AnchorEntity(anchor: planeAnchor)
Note: I'm generating the anchor entity initiated from an existing plane anchor that is classified as a wall.
Any ideas why this is occurring and potential solutions?
Thanks!