internal void PrepareCull(Camera camera, ReflectionProbeCullResults results)
        {
            // Can happens right before a domain reload
            // The CullingGroup is disposed at that point
            if (m_PlanarProbeCullingGroup == null)
            {
                return;
            }

            RemoveDestroyedProbes(m_PlanarProbes, m_PlanarProbeBounds, ref m_PlanarProbeCount);

            m_PlanarProbeCullingGroup.targetCamera = camera;
            m_PlanarProbeCullingGroup.SetBoundingSpheres(m_PlanarProbeBounds);
            m_PlanarProbeCullingGroup.SetBoundingSphereCount(m_PlanarProbeCount);

            results.PrepareCull(m_PlanarProbeCullingGroup, m_PlanarProbes);
        }
Пример #2
0
 public static void PrepareCull(Camera camera, ReflectionProbeCullResults results)
 {
     s_Instance.PrepareCull(camera, results);
 }