private void Awake() { Subscribers = new List <RayTracingSubscriber>(); _transformsToWatch = new List <Transform>(); _cam = GetComponent <Camera>(); _cam.depthTextureMode |= DepthTextureMode.Depth; kernels = new List <int>(); instance = this; }
private void Start() { RayTracingManager.Register(this); //GetComponent<MeshRenderer>().enabled = false; }
private void OnDisable() { RayTracingManager.UnRegister(this); }