private void updateOffset(float time) { float rateOffset = time; mainTexture.UpdateOffset(rateOffset, true); CloudOverlay.UpdateRotation(mainTexture.Offset); if (detailTexture.InUse) { //Debug.Log("Stuffs"); //called on main menu detailTexture.UpdateOffset(rateOffset, false); ScaledCloudMaterial.SetVector("_DetailOffset", detailTexture.Offset); CloudMaterial.SetVector("_DetailOffset", detailTexture.Offset); } }
private void updateOffset(float time) { float rateOffset = time; mainTexture.UpdateOffset(rateOffset, true); CloudOverlay.UpdateRotation(mainTexture.Offset); if (detailTexture.InUse) { detailTexture.UpdateOffset(rateOffset, false); ScaledCloudMaterial.SetVector("_DetailOffset", detailTexture.Offset); CloudMaterial.SetVector("_DetailOffset", detailTexture.Offset); } }