Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift / SpriteKit: How to create a water drop effect?

i wonder how the following effect could be made in Swift (SpriteKit).

effect example image

I think about adding some ShapeNodes and fill them with the background image with -yscale 1.

But i think this effect was made somehow different, because the background image isn't just mirrored horizontally - it also has some graphics effects on it (it is mirrored in the shape the water pearl has and so on).

Was it done with a ShaderNode?

Does someone has an idea how i could create a same effect in SpriteKit - like water pearls which looks like they are on the "camera" and they mirror the background "waterpearl like"?

Thank you.

like image 793
aignetti Avatar asked Oct 12 '16 12:10

aignetti


1 Answers

Hmm well you could create a bunch of water images and have them displayed randomly on the screen at some z position, however I think this effect was made in another program like unity or something of the sort, Your best bet is to create transparent water droplets as images and have them displayed randomly on your screen.

like image 184
shane Avatar answered Sep 17 '22 20:09

shane