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
|
//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;
|
// half alpha = 0.5;
|
||||||
|
|
||||||
// half4 output = half4(layer.sample(pos).xyz*newCol, 1);
|
// 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;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,23 +24,13 @@ 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)
|
// .colorMultiply(.white)
|
||||||
// .visualEffect { content, proxy in
|
|
||||||
// content
|
|
||||||
// .layerEffect(
|
|
||||||
// ShaderLibrary.crt(
|
|
||||||
// .float2(proxy.size),
|
|
||||||
// .float(time)
|
|
||||||
// ),
|
|
||||||
// maxSampleOffset: .zero
|
|
||||||
// )
|
|
||||||
// }
|
|
||||||
.overlay {
|
.overlay {
|
||||||
if hostsManager.settings.filter == .crt {
|
if hostsManager.settings.filter == .crt {
|
||||||
CRTView()
|
CRTView()
|
||||||
.opacity(0.75)
|
.opacity(0.75)
|
||||||
.blendMode(.overlay)
|
// .blendMode(.overlay)
|
||||||
.allowsHitTesting(false)
|
.allowsHitTesting(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user