Skip to content

Instantly share code, notes, and snippets.

View malj's full-sized avatar

Luka Maljic malj

View GitHub Profile
@JohannesMP
JohannesMP / UIBlur.shader
Last active July 10, 2024 11:36
UI.Image Blur Shader with layering and masking support
Shader "Custom/UIBlur"
{
Properties
{
[Toggle(IS_BLUR_ALPHA_MASKED)] _IsAlphaMasked("Image Alpha Masks Blur", Float) = 1
[Toggle(IS_SPRITE_VISIBLE)] _IsSpriteVisible("Show Image", Float) = 1
// Internally enforced by MAX_RADIUS
_Radius("Blur Radius", Range(0, 64)) = 1