public void OnPreCull()
        {
//			if (!ReferenceEquals(null,manager.GetSkyNode ().localScatteringProjector))
//				manager.GetSkyNode ().localScatteringProjector.setActivated(false);
            if (!ReferenceEquals(manager.GetOceanNode(), null))
            {
                manager.GetOceanNode().setWaterMeshrenderersEnabled(false);
            }
        }
        public void OnPreCull()
        {
            m_skynode.UpdateStuff();
            m_skynode.SetUniforms(skyMat);

            if (m_manager.hasOcean && Core.Instance.useOceanShaders)
            {
                if (!MapView.MapIsEnabled && m_manager.m_skyNode.farCamera && !m_manager.m_skyNode.inScaledSpace)
                {
                    m_manager.GetOceanNode().updateStuff(m_manager.GetOceanNode().m_oceanMaterial, m_manager.m_skyNode.farCamera);
                }
            }
        }