Git Product home page Git Product logo

ishader's Introduction

iShader

iShader is a collection of open-source shaders written in Metal targeted for SwiftUI projects. The package is organized into different submodules based on use cases & functionality of shaders:

AudioVisualizer

Shaders in this module are designed to respond to changes in sound frequencies. The shaders in this section are primarily designed for non-scientific purposes. It's written to look responsive and aesthetic when used to visualize music.

ColorEffect

ColorEffect shaders act as a filter effect on the color of each pixel. You've probably used them many times editing a photo taken with your phone.

DistortionEffect

DistortionEffects manipulate the location of each pixel. Seen in many Video editing tools.

LayerEffect

Very similar to ColorEffect, but much more powerful. These shaders are capable of sampling a SwiftUI layer at location(s) derived from any position and then applying some kind of transformation to produce a new color.

ShaderArt

Art using pure math! The results are mesmerizing.

Transition

A Transition is an animation that smoothly animates the intermediary steps between 2 SwiftUI Views.

See it in action

Book iShader is a sample project, demonstrating all of the metal shaders of the library, in SwiftUI Views.

Resources

The majority of the shaders were sourced from platforms such as ShaderToy and GL-Transition, and subsequently adapted for Metal. Prior to inclusion in iShader, it was ensured that the original codes were published under permissive licenses. Links to the original sources are provided in the header of each file.

ishader's People

Contributors

treata11 avatar

Stargazers

 avatar Florian Mari avatar Kiarash Hajian avatar  avatar

Watchers

 avatar

Forkers

keith-43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.