https://www.bilibili.com/video/BV1a4411U7xb/
Shader "Unlit/Window"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Size("Size",float)=1
_T("Time",float) = 1
_Distortion("Distortion",range(-5,5))=0
_Blur("Blur",range(0,1))=1
}
SubShader
{
Tags { "RenderType"="Opaque" "Queue"="Transparent" }
LOD 100
GrabPass{"_GrabTexture"}
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
// make fog work
#pragma multi_compile_fog
#define S(a, b, t) smoothstep(a, b, t)
#include "UnityCG.cginc"
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f
{
float2 uv :