mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
shaderstuff
This commit is contained in:
22
ShhShell/Terminal/CRT.metal
Normal file
22
ShhShell/Terminal/CRT.metal
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// CRT.metal
|
||||
// ShhShell
|
||||
//
|
||||
// Created by neon443 on 25/08/2025.
|
||||
//
|
||||
|
||||
#include <metal_stdlib>
|
||||
using namespace metal;
|
||||
|
||||
//learning shaders stuff here
|
||||
[[ stitchable ]] half4 opacityInvert(float2 position, half4 color) {
|
||||
return half4(1, 0, 0, color.a);
|
||||
}
|
||||
|
||||
[[ stitchable ]] half4 redify(float2 pos, half4 color) {
|
||||
return half4(1, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
[[ stitchable ]] half4 passthrough(float2 position, half4 color) {
|
||||
return color;
|
||||
}
|
||||
21
ShhShell/Terminal/ShaderTestingView.swift
Normal file
21
ShhShell/Terminal/ShaderTestingView.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// ShaderTestingView.swift
|
||||
// ShhShell
|
||||
//
|
||||
// Created by neon443 on 25/08/2025.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct ShaderTestingView: View {
|
||||
var body: some View {
|
||||
Image(systemName: "figure.walk.circle")
|
||||
.font(.system(size: 300))
|
||||
.foregroundStyle(.blue)
|
||||
.colorEffect(ShaderLibrary.redify())
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
ShaderTestingView()
|
||||
}
|
||||
@@ -39,6 +39,11 @@ struct SettingsView: View {
|
||||
.ignoresSafeArea(.all)
|
||||
List {
|
||||
Section("Terminal") {
|
||||
Image(systemName: "figure.walk.circle")
|
||||
.font(.system(size: 300))
|
||||
.foregroundStyle(.blue)
|
||||
.colorEffect(ShaderLibrary.redify())
|
||||
|
||||
VStack(alignment: .leading) {
|
||||
HStack {
|
||||
Label("Scrollback", systemImage: "scroll")
|
||||
|
||||
Reference in New Issue
Block a user