mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +00:00
okay finally got fucking shaders working
This commit is contained in:
@@ -13,8 +13,11 @@ using namespace metal;
|
||||
return half4(1, 0, 0, color.a);
|
||||
}
|
||||
|
||||
[[ stitchable ]] half4 redify(float2 pos, half4 color) {
|
||||
return half4(1, 0, 0, 0.1);
|
||||
[[ stitchable ]] half4 redify(float2 position, half4 color) {
|
||||
if (color.a == 0) {
|
||||
return half4(0,0,0,0);
|
||||
}
|
||||
return half4(1 * color.a, 0, 0, color.a);
|
||||
}
|
||||
|
||||
[[ stitchable ]] half4 passthrough(float2 position, half4 color) {
|
||||
|
||||
@@ -42,7 +42,7 @@ struct SettingsView: View {
|
||||
Image(systemName: "figure.walk.circle")
|
||||
.font(.system(size: 300))
|
||||
.foregroundStyle(.blue)
|
||||
.colorEffect(ShaderLibrary.redify())
|
||||
.colorEffect(ShaderLibrary.scanlines())
|
||||
|
||||
VStack(alignment: .leading) {
|
||||
HStack {
|
||||
|
||||
Reference in New Issue
Block a user