made the scanlines stronger and the terminal brighter

removed scanwave its barely visible anyway
This commit is contained in:
neon443
2025-08-27 11:58:50 +01:00
parent 62debc38fb
commit 6836854972
2 changed files with 12 additions and 23 deletions

View File

@@ -17,14 +17,14 @@ 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;
alpha *= 1; alpha *= 1;

View File

@@ -24,27 +24,16 @@ 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)
// .visualEffect { content, proxy in
// content
// .layerEffect(
// ShaderLibrary.crt(
// .float2(proxy.size),
// .float(time)
// ),
// maxSampleOffset: .zero
// )
// }
.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 {
Color.gray.opacity(0.2) Color.gray.opacity(0.2)