From 7fb3ad93fbe62b027c46f6a67b1ef7a903d15122 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Wed, 27 Aug 2025 11:50:16 +0100 Subject: [PATCH] ajskdlhjaksdgiuaheuighgaxscgfasdgfasdfgs --- ShhShell/Terminal/CRT.metal | 8 ++++---- ShhShell/Views/Terminal/ShellView.swift | 16 +++------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/ShhShell/Terminal/CRT.metal b/ShhShell/Terminal/CRT.metal index 09f50c4..a8ee1cd 100644 --- a/ShhShell/Terminal/CRT.metal +++ b/ShhShell/Terminal/CRT.metal @@ -22,15 +22,15 @@ using namespace metal; //scanlines half scanline = 0.5 + 0.5 * sin(uv.y * 1250.0); -// scanline *= 0.5; + scanline *= 0.5; half3 newColor = scanwave*scanline; - half alpha = 1 - scanline; - alpha *= 1; +// half alpha = 1 - scanline; +// half alpha = 0.5; // half4 output = half4(layer.sample(pos).xyz*newCol, 1); - half4 output = half4(color.xyz*newColor*alpha, alpha); + half4 output = half4(color.xyz*newColor, 1); return output; } diff --git a/ShhShell/Views/Terminal/ShellView.swift b/ShhShell/Views/Terminal/ShellView.swift index b39ee8a..473280d 100644 --- a/ShhShell/Views/Terminal/ShellView.swift +++ b/ShhShell/Views/Terminal/ShellView.swift @@ -24,23 +24,13 @@ struct ShellView: View { ZStack { TerminalController(handler: handler, hostsManager: hostsManager) - .colorMultiply(Color(red: 0.95, green: 1, blue: 0.95, opacity: 1)) - .colorMultiply(.white) - // .visualEffect { content, proxy in - // content - // .layerEffect( - // ShaderLibrary.crt( - // .float2(proxy.size), - // .float(time) - // ), - // maxSampleOffset: .zero - // ) - // } +// .colorMultiply(Color(red: 0.95, green: 1, blue: 0.95, opacity: 1)) +// .colorMultiply(.white) .overlay { if hostsManager.settings.filter == .crt { CRTView() .opacity(0.75) - .blendMode(.overlay) +// .blendMode(.overlay) .allowsHitTesting(false) } }