okay now brightened up the terminal, but fucking scanlines are grey ahh

also removed the scanwave its barely visible anyway
This commit is contained in:
neon443
2025-08-27 12:10:41 +01:00
2 changed files with 15 additions and 16 deletions

View File

@@ -17,20 +17,20 @@ using namespace metal;
float2 bottomTrailing = size; float2 bottomTrailing = size;
// scanwave // scanwave
half3 scanwave = 0.5 + 0.5 * sin(time + uv.y*10); // half3 scanwave = 0.5 + 0.5 * sin(time + uv.y*10);
scanwave*=2; // scanwave*=2;
//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;
// half alpha = 0.5; 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, 1); half4 output = half4(color.xyz*newColor*alpha, alpha);
return output; return output;
} }

View File

@@ -25,15 +25,14 @@ 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) .brightness(0.2)
.overlay { if hostsManager.settings.filter == .crt {
if hostsManager.settings.filter == .crt { CRTView()
CRTView() .opacity(0.75)
.opacity(0.75) .brightness(-0.2)
// .blendMode(.overlay) .blendMode(.overlay)
.allowsHitTesting(false) .allowsHitTesting(false)
} }
}
} }
Group { Group {