Simple calculation to render cheap water effects.
This simple project demonstrates :
how to use Metal draw compute shader, or known as 'kernal function'.
share code between iOS/OSX, both targets are built in the same project.
Demo - Mac
Demo - iPhone
Build and Run
Choose to run OSX or iOS version.
Notice: iOS simulator doesnot support Metal framework, you have to run it on a real A7 iPhone.
Subscribe to iOS Example
Get the latest posts delivered right to your inbox