void LateUpdate() { GerstnerWavesJobs.UpdateHeights(); if (!CheckInstance(false)) { return; } var _e = grids.GetEnumerator(); while (_e.MoveNext()) { _e.Current.SetupMaterial(); } }
void LateUpdate() { GerstnerWavesJobs.UpdateHeights(); if (!CheckInstance(false)) { return; } var _e = grids.GetEnumerator(); while (_e.MoveNext()) { float scale = (0.5f * m_worldfftSize); _e.Current.SetupMaterial(m_map0, scale); } if (m_queueNode != null) { if (m_queueNode.Value != null && !m_queueNode.Value.IsCreated()) { if (Application.isPlaying) { ForceReload(true); } m_queueNode = null; return; } m_queueNode = m_queueNode.Next; } else { m_queueNode = m_queueRTs.First; } PhysicsUpdate(); }