psydack / uimgui

UImGui (Unity ImGui) is an UPM package for the immediate mode GUI library using ImGui.NET. This project is based on RG.ImGui project.
MIT License
348 stars 55 forks source link

Setting FXAA on a camera in URP completely stops rendering of the UI [BUG] #63

Open trueGmek opened 6 months ago

trueGmek commented 6 months ago

Describe the bug While trying to set up UImGUI on our project I couldn't get the UI to render at all. It turned out that the camera had the AA option set to FXAA. In step 7 of your instruction https://github.com/psydack/uimgui/issues/14#issuecomment-901400205, you mention that the shaders do not work well with FXAA. Now as it turns out, they don't work at all.

Packages like this one, as great as they are, should not dictate the camera settings. It would be great if you could fix that, and I hope that this ticket will help others to fix this problem 😅

To Reproduce

  1. Create an empty project with Unity 2023.2.8f1 using URP
  2. Import the uimgui package
  3. Set up the package using this instruction: https://github.com/psydack/uimgui/issues/14#issuecomment-901400205
  4. Change Anti-Aliasing setting to FXAA
  5. See error

Version/Branch of UImGui: Version: 5.0.0

Unity Version 2023.2.8f1

Render pipeline (HDRP / URP / Built-in) URP

Expected behavior The UI should render normally

Screenshots image image image