mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
made the scanlines stronger and the terminal brighter
removed scanwave its barely visible anyway
This commit is contained in:
@@ -17,14 +17,14 @@ 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;
|
||||
|
||||
half3 newColor = scanwave*scanline;
|
||||
half3 newColor = /*scanwave**/scanline;
|
||||
|
||||
half alpha = 1 - scanline;
|
||||
alpha *= 1;
|
||||
|
||||
@@ -24,27 +24,16 @@ struct ShellView: View {
|
||||
|
||||
ZStack {
|
||||
TerminalController(handler: handler, hostsManager: hostsManager)
|
||||
.colorMultiply(Color(red: 0.95, green: 1, blue: 0.95, opacity: 1))
|
||||
.colorMultiply(.white)
|
||||
// .visualEffect { content, proxy in
|
||||
// content
|
||||
// .layerEffect(
|
||||
// ShaderLibrary.crt(
|
||||
// .float2(proxy.size),
|
||||
// .float(time)
|
||||
// ),
|
||||
// maxSampleOffset: .zero
|
||||
// )
|
||||
// }
|
||||
.overlay {
|
||||
// .colorMultiply(Color(red: 0.95, green: 1, blue: 0.95, opacity: 1))
|
||||
.brightness(0.2)
|
||||
if hostsManager.settings.filter == .crt {
|
||||
CRTView()
|
||||
.opacity(0.75)
|
||||
.brightness(-0.2)
|
||||
.blendMode(.overlay)
|
||||
.allowsHitTesting(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Group {
|
||||
Color.gray.opacity(0.2)
|
||||
|
||||
Reference in New Issue
Block a user