mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +00:00
ajskdlhjaksdgiuaheuighgaxscgfasdgfasdfgs
This commit is contained in:
@@ -22,15 +22,15 @@ using namespace metal;
|
||||
|
||||
//scanlines
|
||||
half scanline = 0.5 + 0.5 * sin(uv.y * 1250.0);
|
||||
// scanline *= 0.5;
|
||||
scanline *= 0.5;
|
||||
|
||||
half3 newColor = scanwave*scanline;
|
||||
|
||||
half alpha = 1 - scanline;
|
||||
alpha *= 1;
|
||||
// half alpha = 1 - scanline;
|
||||
// half alpha = 0.5;
|
||||
|
||||
// half4 output = half4(layer.sample(pos).xyz*newCol, 1);
|
||||
half4 output = half4(color.xyz*newColor*alpha, alpha);
|
||||
half4 output = half4(color.xyz*newColor, 1);
|
||||
return output;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,23 +24,13 @@ 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
|
||||
// )
|
||||
// }
|
||||
// .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)
|
||||
// .blendMode(.overlay)
|
||||
.allowsHitTesting(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user