You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Use xr.SecondaryScreenPercentage.HMDRenderTarget rather than vr.PixelDensity for fixed spatial scaling factors, to reflect that this serves the same purpose as r.SecondaryScreenPercentage.GameViewport for desktop, and use scaling centered around 100.0f rather than 1.0f. Support dynamic resolution in XR + Mobile LDR. Mobile LDR normally does not support any resolution scaling since it lacks post-processing, but we can workaround this by rendering to the upper left corner of a fixed-size render target, then passing an appropriate view rect to the OpenXR compositor, which will automatically perform spatial scaling before displaying to the device. #jira UE-216057, UE-168921 #rb Jeff.Fisher [CL 35470043 by christopher fiala in ue5-main branch]