public void LerpShouldReturnARenderingDataObject() { var data = new RenderingData(); var newRenderingDataObject = data.Lerp(data, 0.5f); Assert.IsNotNull(newRenderingDataObject); }
public override sealed T Get <T>() { if (EntitiesRunner.Current.State == UpdateDrawState.Draw && typeof(T) == typeof(RenderingData) && lastRenderingData != null) { return((T)(object)lastRenderingData.Lerp(renderingData, EntitiesRunner.CurrentDrawInterpolation)); } if (typeof(T) == typeof(RenderingData)) { return((T)(object)renderingData); } return(base.Get <T>()); }