Skip to content

Instantly share code, notes, and snippets.

@Refsa
Refsa / BlurEffect.compute
Last active November 9, 2023 08:24
Unity URP custom render feature for UI Blur
#pragma kernel Downscale
#pragma kernel GaussianBlurVertical
#pragma kernel GaussianBlurHorizontal
#pragma kernel BoxBlur
Texture2D<float4> _Source;
RWTexture2D<float4> _Dest;
float _Amount;
float2 _Size;