public void InitComputeShaderRasterization2D(ComputeShader shader)
 {
     if (CSR2D != null)
     {
         return;
     }
     CSR2D = new CSRasterization2D(shader);
 }
Beispiel #2
0
        void OnDestroy()
        {
#if UNITY_EDITOR
            EditorApplication.update -= OnEditorUpdate;
#endif

            PathFinder.CallThisWhenSceneObjectWasGone();

            CSR3D = null;
            CSR2D = null;
        }