maxxfrazer / FocusEntity

Bringing the scanning box from SceneKit to RealityKit

Home Page:https://maxxfrazer.github.io/FocusEntity/documentation/focusentity/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transparent texture problem

Rus-Cosmin opened this issue · comments

Describe the bug
The example with the png texture are not transparent

To Reproduce
Steps to reproduce the behavior:

  1. Go to example
  2. Try the material example
  3. Try on a device
  4. The png's are not transparent

Expected behavior
The texture is transparent

Problem seems to be here
Proposed fix
modelMaterial.color = .init(tint: .white.withAlphaComponent(0.9999), texture: .init(tex))

Oh damn, that's annoying - for some reason I thought this was fixed in iOS 15 🤦

Could you open a PR with the fix?

Yes, i will try:D first time making a PR