private static void SetRenderScale(float renderScale, float renderViewportScale) { if (Mathf.Abs(VRTK_SharedMethods.GetEyeTextureResolutionScale() - renderScale) > float.Epsilon) { VRTK_SharedMethods.SetEyeTextureResolutionScale(renderScale); } if (Mathf.Abs(XRSettings.renderViewportScale - renderViewportScale) > float.Epsilon) { XRSettings.renderViewportScale = renderViewportScale; } }