public void Update() { managerState = "updating"; m_radius = (float)parentCelestialBody.Radius; //Update the sky and sun m_sunNode.setDirectionToSun(getDirectionToSun()); m_sunNode.UpdateNode(); m_skyNode.UpdateNode(); if (hasOcean) { m_oceanNode.UpdateNode(); } updateCnt++; managerState = "update done " + updateCnt.ToString(); //print (managerState); }
public void Update() { m_skyNode.UpdateNode(); if (!ReferenceEquals(m_oceanNode, null)) { m_oceanNode.UpdateNode(); } }
public void Update() { m_skyNode.UpdateNode(); if (hasOcean && Core.Instance.useOceanShaders) { m_oceanNode.UpdateNode(); if (!m_oceanNode.rendertexturesCreated) { waitBeforeReloadCnt++; if (waitBeforeReloadCnt >= 2) { reBuildOcean(); waitBeforeReloadCnt = 0; } } } }