简体   繁体   中英

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

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

效果示例图片

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.

嗯,您可以创建一堆水图像,并将它们随机显示在屏幕上某个z位置处,但是我认为这种效果是在另一个程序(如unity或类似的程序)中实现的,最好的选择是创建透明的水滴作为图像并将它们随机显示在屏幕上。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM