Rufus31415 / Simple-WebXR-Unity

⭐ Bringing WebXR to Unity 3D ! B-)
https://rufus31415.github.io/webxr/MRTK-HandInteraction/
MIT License
573 stars 82 forks source link

High DPI rendering issue with Unity 2020 #39

Closed Rufus31415 closed 3 years ago

Rufus31415 commented 3 years ago

With Unity 2020, by default, the rendering of the 2 eyes is not correct:

The problem does not occur on other browsers

On the Quest 1 : window.devicePixelRatio = 0.800000011920929

Minimal.Framework.js :

  function _JS_SystemInfo_GetPreferredDevicePixelRatio() {
    return Module.devicePixelRatio || window.devicePixelRatio || 1
  }

Either add the property devicePixelRatio: 1 in the config object of index.html or force Module.devicePixelRatio in SimpleWebXR.jspre

com oculus browser-20210601-231905