Post

Replies

Boosts

Views

Activity

PNG with transparency as plane texture
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])
12
2
6.4k
Apr ’22