Post marked as solved
Post marked as solved with 10 replies, 4,856 views
Hi there!I'm trying to add a png image as texture in a material, but the transparency is not carried over. Areas that should have transparency have a black color instead. I've tried the different materials UnlitMaterial and SimpleMaterial. How can I fix this?Thanksvar profileMaterial = UnlitMaterial()
profileMaterial.baseColor = try! .texture(.load(named: "profilePicture.png"))
let profileMesh = MeshResource.generatePlane(width: 0.2, height: 0.2)
let profilePlane = ModelEntity.init(mesh: profileMesh, materials: [profileMaterial])