mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
AAGHDHDHDHDHFhioheoihwioe
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -53,6 +53,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
|
||||
}
|
||||
|
||||
override func cursorStyleChanged(source: Terminal, newStyle: CursorStyle) {
|
||||
super.cursorStyleChanged(source: source, newStyle: newStyle)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user