Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

ChoiJeHyen/urp-kawase-blur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

Kawase Blur

Renderer Extension for Universal Render Pipeline

This is a experimental RenderFeature implementation that:

  • implements a post-processing-like effect in URP using ScriptableRenderFeatures
  • renders multiple passes using CommandBuffers in RenderFeatures
  • provides a simple yet effective blur, based on the Kawase blur as described in this article.

Features

  • performance friendly features,
    • variable number of blur passes
    • downscaling
  • selection of materials
    • lit / unlit
    • UI-friendly with masks
  • easy package installation

Download

Download this project using the releases tab. The unitypackage contains all the files needed to setup the blur effect. The demo scene is not included.

Video Tutorial

I've created a video tutorial on how to install and use this package. Check it out:

Notice

This blur will work for both 3D objects and UI images. Please note however this implementation will not allow for the blurring of other UI elements, only 3D scene elements. Also, for UI blurring to work, the canvas must be set to 'Screen Space - Camera' or 'World Space', and not 'Screen Space - Overlay'.

Demo scene

Masked shaders

Masked shader variants can be used to blur UI elements with rounded corners properly. To do this, simply attach a material using the masked shader onto a UI image component, and change the mask to an image with transparency. If the image has been sliced to allow for resizing, also set the sprite on the image component to the same mask.

Blur originally developed with Unity 2019.3. Demo scene & project restructure done with Unity 2020.1.

cuga byeongyeong sahang

UGUI Maskgineungi jaldongjaghadorog seutensil beopeoreul cugahan syeideojagseong.

camgo

https://forum.unity.com/threads/shader-graph-ui-image-shader.628111/

https://answers.unity.com/questions/980924/ui-mask-with-shader.html

About

URP renderer feature enabling a blur effect.

Resources

Readme

Stars

Watchers

Forks

Packages

Contributors

Languages

  • ShaderLab 85.2%
  • C# 14.8%