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 bottomLeading = float2(size.y, 0);
|
||||||
float2 bottomTrailing = size;
|
float2 bottomTrailing = size;
|
||||||
|
|
||||||
// scanwave
|
|
||||||
// half3 scanwave = 0.5 + 0.5 * sin(time + uv.y*10);
|
|
||||||
// scanwave*=2;
|
|
||||||
|
|
||||||
//scanlines
|
//scanlines
|
||||||
half scanline = 0.5 + 0.5 * sin(uv.y * 1250.0);
|
half scanline = 0.5 + 0.5 * sin(uv.y * size.y*2);
|
||||||
// scanline *= 0.5;
|
|
||||||
|
|
||||||
half3 newColor = /*scanwave**/scanline;
|
|
||||||
|
|
||||||
half alpha = 1 - scanline;
|
half alpha = 1 - scanline;
|
||||||
alpha *= 2;
|
alpha *= 2;
|
||||||
|
|
||||||
// half4 output = half4(layer.sample(pos).xyz*newCol, 1);
|
return half4(color.xyz*scanline*alpha, alpha);
|
||||||
half4 output = half4(color.xyz*newColor*alpha, alpha);
|
|
||||||
return output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//learning shaders stuff here
|
//learning shaders stuff here
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
|
|||||||
}
|
}
|
||||||
|
|
||||||
override func cursorStyleChanged(source: Terminal, newStyle: CursorStyle) {
|
override func cursorStyleChanged(source: Terminal, newStyle: CursorStyle) {
|
||||||
|
super.cursorStyleChanged(source: source, newStyle: newStyle)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ struct CRTView: View {
|
|||||||
TimelineView(.animation) { tl in
|
TimelineView(.animation) { tl in
|
||||||
let time = tl.date.distance(to: startTime)
|
let time = tl.date.distance(to: startTime)
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.foregroundStyle(.white.opacity(0.1))
|
.foregroundStyle(.black.opacity(0.1))
|
||||||
.visualEffect { content, proxy in
|
.visualEffect { content, proxy in
|
||||||
content
|
content
|
||||||
.colorEffect(
|
.colorEffect(
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ 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))
|
||||||
.brightness(0.2)
|
.brightness(hostsManager.settings.filter == .crt ? 0.2 : 0.0)
|
||||||
if hostsManager.settings.filter == .crt {
|
if hostsManager.settings.filter == .crt {
|
||||||
CRTView()
|
CRTView()
|
||||||
.opacity(0.75)
|
.opacity(0.75)
|
||||||
|
|||||||
Reference in New Issue
Block a user