Example #1
0
 protected void Awake()
 {
     this.shader        = ShaderModule.GetScopeOverlay();
     this.maskTexture   = ShaderModule.GetMaskTexture();
     this.kernelId      = this.shader.FindKernel("RefractionBlur");
     this.renderTexture = new RenderTexture(Screen.width, Screen.height, 1, RenderTextureFormat.ARGBFloat, RenderTextureReadWrite.Linear);
     this.renderTexture.enableRandomWrite = true;
     _ = this.renderTexture.Create();
 }