engine icon indicating copy to clipboard operation
engine copied to clipboard

WebXR refractions incorrect.

Open defektu opened this issue 2 years ago • 4 comments

Seems like refractions are buggy in WebXR. Haven't tested in Oculus Quest 2 yet. Will provide info when tested.

Description

  • Firefox WebXR extension stereoscopic effect is used.
  • Refractions seem to takes full part of canvas's color grab pass.

Issues

  1. numbered corner should not be there.
  2. controller boxs are should not be seen in that angle.

Screenshot

image

defektu avatar Apr 11 '23 09:04 defektu

Is that with the WebXR emulator? How does it look without the stereo rendering?

yaustar avatar Apr 11 '23 09:04 yaustar

Yes it is WebXR Emulator. It does ok without stereo rendering.

Is that with the WebXR emulator? How does it look without the stereo rendering?

defektu avatar Apr 11 '23 18:04 defektu

Okay, I can imagine it going wrong in the emulator with stereo rendering. Definitely needs testing on device :)

yaustar avatar Apr 12 '23 08:04 yaustar

I suspect this is related to the fact the scene grab texture contains all viewports, and so the shader code that samples from this textures need to only sample the relevant viewport of that texture, instead of the whole texture.

mvaligursky avatar Jul 07 '23 15:07 mvaligursky