revival/game/Assets/Scripts/Rendering/GraphicsInit.cs

25 lines
699 B
C#
Raw Permalink Normal View History

2021-04-24 03:06:03 +02:00
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);
}
}