internal void PreCullCamera(Camera camera)
        {
#if UNITY_EDITOR
            if (Application.isPlaying)
            {
#endif

            if (SkySphereProfile != null)
            {
                SkySphereProfile.UpdateSkySphere(camera, MeshRenderer.sharedMaterial, gameObject);
            }

#if UNITY_EDITOR
        }
#endif
        }
        private void CameraPreCull(Camera camera)
        {
            if (WeatherMakerScript.ShouldIgnoreCamera(this, camera) || camera.orthographic || WeatherMakerCommandBufferManagerScript.CameraStack > 1)
            {
                return;
            }

            if (SkySphereProfile != null && camera != null && isActiveAndEnabled && WeatherMakerLightManagerScript.Instance != null)
            {
                SkySphereProfile.UpdateSkySphere(camera, skySphereMaterial, gameObject, WeatherMakerLightManagerScript.Instance.SunPerspective);
            }
            if (SkySphereProfile.AtmosphereProfile != null)
            {
                SkySphereProfile.AtmosphereProfile.UpdateShaderVariables(camera, AtmosphereLookupMaterial, AtmosphereComputeShader);
            }
        }