Loading video...

Video Failed to Load

Go Home

Simple SwiftUI shader to represent ideas in Dream Machine 🫧✨

72,854 views • 1 year ago •via X (Twitter)

12 Comments

Theo Panagiotopoulos's profile picture
Theo Panagiotopoulos1 year ago

We wanted this to be performant since we often show multiple instances at once + ability to apply over any content 👀

Theo Panagiotopoulos's profile picture
Theo Panagiotopoulos1 year ago

SwiftUI shaders have a bunch of gotchas and can be a very bad perf decision if not careful, since you lose a lot of the optimizations you'd normally be able to do in Metal - like not shading pixels off-screen, not reevaluating when layer moves, etc. but they're oh so convenient 😅

Theo Panagiotopoulos's profile picture
Theo Panagiotopoulos1 year ago

One trick we're using here to help sell the snow-globe effect in a single pass is flipping & blurring underlying image and letting color from the flipped image bleed through the edges 😊

Theo Panagiotopoulos's profile picture
Theo Panagiotopoulos1 year ago

Some more examples:

ASTROMEDA - Wishlist on Steam!'s profile picture
ASTROMEDA - Wishlist on Steam!2 years ago

A small teaser of Astromeda! It's a game inspired by Pokemon, Undertale, and OneShot. Wishlist on Steam! #TrailerTuesday #indiegame #IndieGameDev #GamingNews #Steam

Janum Trivedi's profile picture
Janum Trivedi1 year ago

Really great work, this is super impressive :)

Theo Panagiotopoulos's profile picture
Theo Panagiotopoulos1 year ago

🙇

Donnie's profile picture
Donnie1 year ago

Gist please. 🙏🏼

Samarth Sinha's profile picture
Samarth Sinha1 year ago

Looks like cursor code

Marc's profile picture
Marc1 year ago

this looks incredible! nice work

Ben South's profile picture
Ben South1 year ago

beautiful

Theo Panagiotopoulos's profile picture
Theo Panagiotopoulos1 year ago

🙇‍♂️

Related Videos