From dd382e3a15575c3d13a78d22722f331632b91261 Mon Sep 17 00:00:00 2001 From: Rizki Maulana Date: Mon, 7 Oct 2024 12:06:01 +0700 Subject: [PATCH] Fix transparent material color --- Sources/FocusEntity/FocusEntity+Colored.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/FocusEntity/FocusEntity+Colored.swift b/Sources/FocusEntity/FocusEntity+Colored.swift index e39f164..9f1bfd5 100644 --- a/Sources/FocusEntity/FocusEntity+Colored.swift +++ b/Sources/FocusEntity/FocusEntity+Colored.swift @@ -35,7 +35,8 @@ public extension FocusEntity { modelMaterial = mat case .texture(let tex): var mat = UnlitMaterial() - mat.color = .init(tint: .white.withAlphaComponent(0.9999), texture: .init(tex)) + mat.baseColor = .texture(tex) + mat.tintColor = .white.withAlphaComponent(0.99) modelMaterial = mat @unknown default: break }