示例#1
0
        private void Awake()
        {
            Subscribers        = new List <RayTracingSubscriber>();
            _transformsToWatch = new List <Transform>();
            _cam = GetComponent <Camera>();
            _cam.depthTextureMode |= DepthTextureMode.Depth;

            kernels = new List <int>();

            instance = this;
        }
示例#2
0
        private void Start()
        {
            RayTracingManager.Register(this);

            //GetComponent<MeshRenderer>().enabled = false;
        }
示例#3
0
 private void OnDisable()
 {
     RayTracingManager.UnRegister(this);
 }