Skip to content

Peroshki/Unity-Image-Kernels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity 3D Kernel Demo

Play this demo at https://peroshki.github.io/Unity-Image-Kernels/

A demonstration of image processing using kernel transformations in Unity 3D. Two different image kernels are used in this project, one to blur an image using a Gaussian Blur approximation, and one to sharpen an image. The kernel transformations are applied using CG/HLSL shaders. All of the shaders and scripts used in this project can be found in the Assets folder.

Controls

Key Action
Up/Down Arrow Increase/Decrease Step
Left/Right Arrow Increase/Decrease Mix
W/A/S/D Move Camera
Z/X Zoom In/Out

Tips

  • Avoid using fullscreen to prevent the UI from acting strange.

  • The Blur filter looks best at around 0.03 to 0.1 Mix.

  • The Sharpen filter looks best at around 0.3 to 0.5 Mix.

Screenshots

Sharpen filter:

Sharp 0 Sharp 5

Blur filter:

Blur 0 Blur 5

About

A short Unity 3D image processing demo.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published