playcanvas / engine

JavaScript game engine built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.32k stars 1.32k forks source link

WebXR refractions incorrect. #5231

Open defektu opened 1 year ago

defektu commented 1 year ago

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

Description

Issues

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

Screenshot

image

yaustar commented 1 year ago

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

defektu commented 1 year ago

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?

yaustar commented 1 year ago

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

mvaligursky commented 12 months ago

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.