ajskdlhjaksdgiuaheuighgaxscgfasdgfasdfgs

This commit is contained in:
neon443
2025-08-27 11:50:16 +01:00
parent 62debc38fb
commit 7fb3ad93fb
2 changed files with 7 additions and 17 deletions

View File

@@ -22,15 +22,15 @@ using namespace metal;
//scanlines //scanlines
half scanline = 0.5 + 0.5 * sin(uv.y * 1250.0); half scanline = 0.5 + 0.5 * sin(uv.y * 1250.0);
// scanline *= 0.5; scanline *= 0.5;
half3 newColor = scanwave*scanline; half3 newColor = scanwave*scanline;
half alpha = 1 - scanline; // half alpha = 1 - scanline;
alpha *= 1; // half alpha = 0.5;
// half4 output = half4(layer.sample(pos).xyz*newCol, 1); // 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; return output;
} }

View File

@@ -24,23 +24,13 @@ struct ShellView: View {
ZStack { ZStack {
TerminalController(handler: handler, hostsManager: hostsManager) TerminalController(handler: handler, hostsManager: hostsManager)
.colorMultiply(Color(red: 0.95, green: 1, blue: 0.95, opacity: 1)) // .colorMultiply(Color(red: 0.95, green: 1, blue: 0.95, opacity: 1))
.colorMultiply(.white) // .colorMultiply(.white)
// .visualEffect { content, proxy in
// content
// .layerEffect(
// ShaderLibrary.crt(
// .float2(proxy.size),
// .float(time)
// ),
// maxSampleOffset: .zero
// )
// }
.overlay { .overlay {
if hostsManager.settings.filter == .crt { if hostsManager.settings.filter == .crt {
CRTView() CRTView()
.opacity(0.75) .opacity(0.75)
.blendMode(.overlay) // .blendMode(.overlay)
.allowsHitTesting(false) .allowsHitTesting(false)
} }
} }