Contents

Czajnikowski/GlassEffect

SwiftUI + Metal effect that allows to reproduce see-through, decorative/ornamental glass-like effects.

How To Use It?

Use as a Swift Package.

Use a View.glassEffect modifier. At a minimum, you should be able to run the effect by supplying a normal map texture image. For best results, be sure to use high-quality normal maps.

Credits

I used a bunch of resources from 3dtextures.me and everytexture.com in the example app.

Why?

I made it mostly for myself as an exercise in my recent SwiftUI + Metal research.

Feel free to use it, feel free to contribute (fix issues, share ideas), and feel free to hit me up @czajnikowski 👋

Package Metadata

Repository: Czajnikowski/GlassEffect

Stars: 71

Forks: 4

Open issues: 1

Default branch: main

Primary language: swift

License: MIT

Topics: effects, ios17, macos14, metal, metalapi, rendering, swift, swift-package, swift-package-manager, swiftui

README: README.md