Simple calculation to render cheap water effects.

Overview

Water

Simple calculation to render cheap water effects.

Swift 3.0 License MIT

This simple project demonstrates :

  1. how to use Metal draw compute shader, or known as 'kernal function'.
  2. share code between iOS/OSX, both targets are built in the same project.

Demo - Mac

Mac

Demo - iPhone

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.

Thanks

This is an experiment with Apple Swift/Metal shading language. Bascially I just port this WebGL shadertoy to Metal.

  • Special thanks to Victor Korsun for letting me use his shader code
  • http://metalkit.org for all the nice tutorials
You might also like...
Simple Interface Core Animation. Run type-safe animation sequencially or parallelly
Simple Interface Core Animation. Run type-safe animation sequencially or parallelly

Simple Interface Core Animation Sica can execute various animations sequentially or parallelly. Features Animation with duration and delay parallel /

A simple animated progress bar in Swift
A simple animated progress bar in Swift

DSGradientProgressView Introduction DSGradientProgressView is a simple and customizable animated progress bar written in Swift. Inspired by GradientPr

Simple and powerful animated progress bar with dots

Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 8.0+ Swift 3.0+ Installatio

Simple Animated tabbar with native control
Simple Animated tabbar with native control

SSCustomTabbar Simple Animated tabbar with native control. Requirements iOS 11.0+ Xcode 10.0+ Installation SSCustomTabbar doesn't contain any external

Gravity is a simple Swift Package Manager to add gravity to UI objects easily.
Gravity is a simple Swift Package Manager to add gravity to UI objects easily.

Gravity -- Gravity is a simple Swift Package to add gravity to UI objects easily. -- How to use: Add a new Swift Package from XCode and paste the url

DaisyChain is a micro framework which makes UIView animations chaining dead simple.

DaisyChain DaisyChain is a micro framework which makes UIView animations chaining dead simple. It uses the exact same interface you are familiars with

An easy way to add a simple, shimmering effect to any view in an iOS app.
An easy way to add a simple, shimmering effect to any view in an iOS app.

Shimmer Shimmer is an easy way to add a shimmering effect to any view in your app. It's useful as an unobtrusive loading indicator. Shimmer was origin

Simple, extensible interpolation framework
Simple, extensible interpolation framework

THIS PROJECT IS NO LONGER MAINTAINED. Popsicle is a Swift framework for creating and managing interpolations of different value types with built-in UI

Designed for gesture-driven animations. Fast, simple, & extensible!
Designed for gesture-driven animations. Fast, simple, & extensible!

Yet Another Animation Library Designed for gesture-driven animations. Fast, simple, & extensible! It is written in pure swift 3.1 with protocol orient

Comments
  • How can I get custom texture in iOS?

    How can I get custom texture in iOS?

    Hello, I want to have custom texture to be used like directional, or the way the user wants. How can I get that type of animation? Can anyone help me?

    opened by harshjoshi096 0
Owner
Xue Yu
//( ◕‿‿◕ )\
Xue Yu
A collection of animations for iOS. Simple, just add water animations.

DCAnimationKit A collection of animations for iOS Simply, just add water! DCAnimationKit is a category on UIView to make animations easy to perform. E

Dalton 797 Sep 23, 2022
Simple water drops animation 💧

WaterDrops Simple water drops animation ?? Example override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = U

Oh Hyungjun 403 Nov 10, 2022
Add smooth water waves to your views.

WXWaveView Add pretty and smooth waves to your views! The wave can be added to any type of view. 中文说明 e.g. Integration Cocoapods: pod 'WXWaveView' Or

Welkin Xie 347 Dec 28, 2022
Water Ripple Animation Demonstration

WaterRippleAnimationDemonstration Water Ripple Animation Demonstration From the

AndyLan 2 Apr 5, 2022
Various view's effects for iOS, written in Swift. Allows you to animate views nicely with easy to use extensions

Various view's effects for iOS, written in Swift. Allows you to animate views nicely with easy to use extensions. Every animation is randomized. Currently supported animations:

Artur Rymarz 23 Aug 23, 2022
Awesome IOS Styling with SwiftUI, Animation, Effects, Gesture ⭐️

Awesome SwiftUI Styling with SwiftUI ⭐️ This repository is dedicated to IOS styling using SwiftUI. (often using Other Libraries.) I started collecting

SeungYeub Baek 1 Apr 5, 2022
The Effects Library allows developers to create sophisticated and realistic particle systems such as snow, fire, rain, confetti, fireworks, and smoke with no or minimal effort.

The Effects Library allows developers to create sophisticated and realistic particle systems such as snow, fire, rain, confetti, fireworks, and smoke with no or minimal effort.

Stream 182 Jan 6, 2023
A CocoaPod that simplifies creation of the particle effects.

CRParticleEffect A CocoaPod that simplifies creation of particle effects. Supplied with UIPanGestureRecognizer subclass. We know how to add some visua

Cleveroad 350 Mar 8, 2022
Advanced Natural Motion Animations, Simple Blocks Based Syntax

FlightAnimator Moved to Swift 3.1 Support: For Swift 3.1 - Use tag Version 0.9.9 See Installation Instructions for clarification Introduction FlightAn

Anton 589 Dec 29, 2022