syminomega / urp-water-system

A water system for unity urp projects.
0 stars 0 forks source link

Opengles3 异常 #2

Open Justin-sky opened 1 year ago

Justin-sky commented 1 year ago

image

syminomega commented 1 year ago

我会检查一下,你用的urp版本是多少?

BPO-CJ commented 1 year ago

我会检查一下,你用的urp版本是多少?

Hope you speak English! xD

Well, I can confirm that something weird happens with the foam when using OpenGL3.x. But first of all, thank you! You are the guy who fixed Unity's WaterSystem to actually work in URP!

Okay, now to the problem: Not sure if it's related, but we are working on a VR project. Everything works fine in the editor & on the PC, but as soon as we use a Meta Quest (2 or Pro), the shading breaks (but not in the Editor):

image

We get color problems and strange reflection behavior. Again, this only happens when using a Meta Quest device via Oculus Link (the project is not deployed to the device so it's always PC platform).

Unity: 2022.3 URP: 14.0.8

(This reflection issue is also on the original: https://github.com/Unity-Technologies/boat-attack-water/issues/5)

BPO-CJ commented 1 year ago

Alright, I was able to solve almost everything by switching XR from Single Instanced to Multi Pass. Also, the WaterSystem can't be used with the URP Decal System. Decal system is responsible for causing the color, reflection & foam issues.

Now there is only one thing to fix: The Water Reflection. But for this, there is already an open issue on the main Boat Attack WaterSystem project: https://github.com/Unity-Technologies/boat-attack-water/issues/5

syminomega commented 1 year ago

Alright, I was able to solve almost everything by switching XR from Single Instanced to Multi Pass. Also, the WaterSystem can't be used with the URP Decal System. Decal system is responsible for causing the color, reflection & foam issues.

Now there is only one thing to fix: The Water Reflection. But for this, there is already an open issue on the main Boat Attack WaterSystem project: Unity-Technologies/boat-attack-water#5

I'm not sure whether this problem only happens on VR devices. According to your description, this problem may be related to multi-renderer or multi-render feature. The reflection and foam effect requires secondary renderer support.