wave-harmonic / crest

A class-leading water system implemented in Unity
MIT License
3.46k stars 476 forks source link

Underwater broken with XR multi-pass rendering #1130

Open daleeidd opened 1 year ago

daleeidd commented 1 year ago

Is there an existing issue for this?

Have you checked the documentation to resolve your problem?

Current Behavior

Rendering breaks when underwater effect is active when using XR multi-pass rendering:

Expected Behavior

No response

Steps To Reproduce

No response

Unity Version

2022.3.4f1

Crest Version

4.18

Render Pipeline

Universal

Editor or Standalone

Editor (Edit Mode), Editor (Play Mode), Standalone

Environment

No response

Anything else?

Taken from Discord.

Works in Unity 2022.1.01f.

daleeidd commented 1 year ago

The workaround is to use XR SPI instead.

jonlab commented 1 week ago

maybe that is related, but the underwater is broken in VR on Android (Quest) I can see the effect/caustics.. but not at the right place and strangely distorted, as if the actual tracked camera transform was not properly taken into account. I tried the XR multiview rendering mode (which is the same as XR SPI, right?) but it does not work. Any hint ? Tested on last Unity 2022 LTS, BIRP.

daleeidd commented 6 days ago

This affects everything on URP rather than just Android. Please open a new issue.