Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

VRSettings.renderScale

Switch to Manual
public static float renderScale;

Description

Controls the texel:pixel ratio before lens correction, trading performance for sharpness.

Eye textures are allocated to match the largest value encountered at runtime. If the value increases beyond this, eye textures are re-allocated. If the value decreases, viewport scaling is used.