wave-harmonic / crest

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

URP reflection error when using two cameras after build. #1111

Closed FoolNo2 closed 1 year ago

FoolNo2 commented 1 year ago

Is there an existing issue for this?

Have you checked the documentation to resolve your problem?

Current Behavior

In URP, I have two cameras in scene, one of them is main camera, and also it is the target camera of the Ocean, another camera is normal camera. Both of them have a reflection component. When I run in editor, them work whit no errors. All cameras have right reflection effect. image

But when I build my project, only the Ocean'ViewCamera worked, and has bad effect on the other camera. image

I know that the Crest is only support one camera now, but I wonder why it is normal in editor, but is unnormal in standalone. In fact, we need this result like in editor mode. My English is poor, sorry.

Expected Behavior

Both cameras behave normally, just like in the editor.

Steps To Reproduce

No response

Unity Version

2021.3.12f1

Crest Version

urp 4.16

Render Pipeline

Universal

Editor or Standalone

Standalone

Environment

- OS:win10
- GPU:
- Graphics API:
- Target Platform:PC

Anything else?

No response

FoolNo2 commented 1 year ago

Or eliminate the bad effects of packing in another camera.

daleeidd commented 1 year ago

Thanks for reporting. Turns out some code for built-in renderer was interfering with URP code in builds only. This will be fixed in the next release.

daleeidd commented 1 year ago

Fixed in 4.17.