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;
// scanwave
half3 scanwave = 0.5 + 0.5 * sin(time + uv.y*10);
scanwave*=2;
// 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;
// scanline *= 0.5;
half3 newColor = scanwave*scanline;
half3 newColor = /*scanwave**/scanline;
// half alpha = 1 - scanline;
// half alpha = 0.5;
half alpha = 1 - scanline;
alpha *= 0.5;
// 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;
}

View File

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