Skip to content

nthState-Chris/ColorDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WWDC2023 iOS17 SwiftUI Shader Demo with Image Argument

Here's a sample project using the new colorEffect to apply chromatic abberation on an image

.colorEffect

We use the Shader.Argument.image to convert an image which we can sample.

[[ stitchable ]] half4
chromatic_aberration(float2 position, half4 color, float rSlider, float gSlider, float bSlider, const texture2d<half, access::sample> texture) {
Before After
Before After

About

iOS17 Shader with Image Argument

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published