From 9dc41e0833d68080de56e8702f520325e7f73624 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 14 Apr 2026 14:06:10 -0700 Subject: [PATCH] Replaced float4 .w with more appropriate and functionally identical .a float4.rgba is the same as float4.xyzw --- Sources/Core/Renderer/Shader/GUIShaders.metal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Core/Renderer/Shader/GUIShaders.metal b/Sources/Core/Renderer/Shader/GUIShaders.metal index 1d6c6b1e..eb3eaa0f 100644 --- a/Sources/Core/Renderer/Shader/GUIShaders.metal +++ b/Sources/Core/Renderer/Shader/GUIShaders.metal @@ -38,7 +38,7 @@ fragment float4 guiFragment(FragmentInput in [[stage_in]], color = in.tint; } else { color = textureArray.sample(textureSampler, in.uv, in.textureIndex); - if (color.w < 0.33) { + if (color.a < 0.33) { discard_fragment(); } color *= in.tint;