Closed Aerilius closed 7 years ago
HiDPI support in three.js is done by renderer.setPixelRatio(PhotoSphereViewer.SYSTEM.pixelRatio)
.
The value is obtained from window.devicePixelRatio
.
In a normal web browser, JavaScript window.devicePixelRatio
gives 2.0.
However in the WebKit2.WebView it incorrectly returns 1.0, although the webview otherwise renders everything at scale 2.
On a screen with scaling factor 2.0, panorama images are rendered blurry (like non-hidpi). By contrast, eog displays images sharper, as well as PhotoSphereViewer in the browser does.