using System.Collections; using System.Collections.Generic; using UnityEngine; [ExecuteAlways] public class GraphicsInit : MonoBehaviour { private RenderTexture _glitchRT; private const string _GlitchTex = "_GlitchTex"; void Awake() { // _glitchRT = new RenderTexture(Screen.width, Screen.height, 24, RenderTextureFormat.ARGB32); // _glitchRT.name = _GlitchTex; // _glitchRT.enableRandomWrite = true; // _glitchRT.Create(); // // Shader.SetGlobalTexture(_GlitchTex, _glitchRT); // // Graphics.ClearRandomWriteTargets(); // Graphics.SetRandomWriteTarget(1, _glitchRT); } }