title: RealityKit – Material's Alpha transparency
body: <p>Is it possible to have alpha transparency with textures?</p>
  <p>I have png file that contains 8 bit RGBA, but for some reason, the supposed-to-be-transparent parts are simply black.</p>
  <p>I assign the material like this:</p>
  <pre><code>private func setupLightMeshes(_ scene: Entity) {
      let lightEntity = scene.findEntity(named: &quot;LightWindow_Plane&quot;)!
      var lightMaterial = UnlitMaterial()
      
      lightMaterial.baseColor = try! MaterialColorParameter.texture(
      TextureResource.load(named: &quot;light.png&quot;)) // this is 8bpc RGBA
      var modelComponent = lightEntity.components[ModelComponent] as! ModelComponent
      modelComponent = ModelComponent(mesh: modelComponent.mesh, materials: [lightMaterial])
      lightEntity.components.set(modelComponent)
  }
  </code></pre>