AAGHDHDHDHDHFhioheoihwioe

This commit is contained in:
neon443
2025-08-27 15:11:06 +01:00
parent ed67afcf39
commit 6038b99b60
4 changed files with 5 additions and 13 deletions

View File

@@ -16,22 +16,13 @@ using namespace metal;
float2 bottomLeading = float2(size.y, 0);
float2 bottomTrailing = size;
// scanwave
// half3 scanwave = 0.5 + 0.5 * sin(time + uv.y*10);
// scanwave*=2;
//scanlines
half scanline = 0.5 + 0.5 * sin(uv.y * 1250.0);
// scanline *= 0.5;
half3 newColor = /*scanwave**/scanline;
half scanline = 0.5 + 0.5 * sin(uv.y * size.y*2);
half alpha = 1 - scanline;
alpha *= 2;
// half4 output = half4(layer.sample(pos).xyz*newCol, 1);
half4 output = half4(color.xyz*newColor*alpha, alpha);
return output;
return half4(color.xyz*scanline*alpha, alpha);
}
//learning shaders stuff here

View File

@@ -53,6 +53,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
}
override func cursorStyleChanged(source: Terminal, newStyle: CursorStyle) {
super.cursorStyleChanged(source: source, newStyle: newStyle)
}

View File

@@ -14,7 +14,7 @@ struct CRTView: View {
TimelineView(.animation) { tl in
let time = tl.date.distance(to: startTime)
Rectangle()
.foregroundStyle(.white.opacity(0.1))
.foregroundStyle(.black.opacity(0.1))
.visualEffect { content, proxy in
content
.colorEffect(

View File

@@ -25,7 +25,7 @@ struct ShellView: View {
ZStack {
TerminalController(handler: handler, hostsManager: hostsManager)
// .colorMultiply(Color(red: 0.95, green: 1, blue: 0.95, opacity: 1))
.brightness(0.2)
.brightness(hostsManager.settings.filter == .crt ? 0.2 : 0.0)
if hostsManager.settings.filter == .crt {
CRTView()
.opacity(0.75)