Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A collection of Metal Fragment Shaders to empower SwiftUI

NotificationsYou must be signed in to change notification settings

Treata11/iShader

Repository files navigation

iShader is a collection ofopen-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 SwiftUIlayer at location(s) derived from anyposition 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 SwiftUIViews.

See it in action

Book iShader is a SwiftUI-based sample app that demonstrates the entire collection of metal fragment shaders available in the iShader library.

Resources

The majority of the shaders were sourced from platforms such asShaderToy andGL-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.

About

A collection of Metal Fragment Shaders to empower SwiftUI

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp